24#define MAXCONCOLOURS 16
31#define MAXQ3COLOURS 10
34#define CON_LONGCHAR_MASK (CON_LONGCHAR|CON_RICHFORECOLOUR)
36#define CON_NONCLEARBG 0x00800000
37#define CON_HALFALPHA 0x00400000
38#define CON_LINKSPECIAL 0x00200000
39#define CON_LONGCHAR 0x00100000
40#define CON_HIDDEN 0x00080000
41#define CON_BLINKTEXT 0x00040000
42#define CON_2NDCHARSETTEXT 0x00020000
43#define CON_RICHFORECOLOUR 0x00010000
46#define CON_FLAGSMASK 0xFFFF0000
47#define CON_CHARMASK 0x0000FFFF
49#define CON_FGMASK 0x0F000000
50#define CON_BGMASK 0xF0000000
53#define CON_RICHFOREMASK 0xFFF00000
54#define CON_RICHBSHIFT 20
55#define CON_RICHGSHIFT 24
56#define CON_RICHRSHIFT 28
58#define CON_WHITEMASK 0x0F000000
60#define CON_DEFAULTCHAR (CON_WHITEMASK | 32)
62#define CON_LINKSTART (CON_LINKSPECIAL | CON_HIDDEN | '[')
63#define CON_LINKEND (CON_LINKSPECIAL | CON_HIDDEN | ']')
67#define COLOR_DARKBLUE 1
68#define COLOR_DARKGREEN 2
69#define COLOR_DARKCYAN 3
70#define COLOR_DARKRED 4
71#define COLOR_DARKMAGENTA 5
74#define COLOR_DARKGREY 8
79#define COLOR_MAGENTA 13
80#define COLOR_YELLOW 14
83#define S_COLOR_BLACK "^0"
84#define S_COLOR_RED "^1"
85#define S_COLOR_GREEN "^2"
86#define S_COLOR_YELLOW "^3"
87#define S_COLOR_BLUE "^4"
88#define S_COLOR_CYAN "^5"
89#define S_COLOR_MAGENTA "^6"
90#define S_COLOR_WHITE "^7"
91#define S_COLOR_TRANS "^8"
92#define S_COLOR_GRAY "^9"
94#define CON_DEFAULT "^&--"
95#define CON_WARNING "^&E0"
96#define CON_ERROR "^&C0"
97#define CON_NOTICE "^&-1"
99#define isextendedcode(x) ((x >= '0' && x <= '9') || (x >= 'A' && x <= 'F') || x == '-')
100#define ishexcode(x) ((x >= '0' && x <= '9') || (x >= 'A' && x <= 'F') || (x >= 'a' && x <= 'f'))
102#define CONL_CENTERED (1u<<0)
103#define CONL_NONOTIFY (1u<<1)
104#define CONL_BREAKPOINT (1u<<2)
105#define CONL_EXECUTION (1u<<3)
217#define MAXCMDLINE 8192
218#define CON_EDIT_LINES_MASK ((1<<8)-1)
219extern unsigned char *
key_lines[CON_EDIT_LINES_MASK+1];
278#define TRACE(x) Sys_Printf x
dReal dReal fy
Definition: com_phys_ode.c:386
dReal fx
Definition: com_phys_ode.c:386
int num
Definition: com_phys_ode.c:314
unsigned int conchar_t
Definition: common.h:476
unsigned char qbyte
Definition: common.h:127
console_t * con_head
Definition: console.c:25
void Con_ExpandConsoleSelection(console_t *con)
Definition: console.c:3534
void Con_Init(void)
Definition: console.c:799
conchar_t q3codemasks[MAXQ3COLOURS]
Definition: common.c:3531
void Con_History_Save(void)
Definition: console.c:579
vfsfile_t * Con_POpen(const char *conname)
Definition: console.c:1110
void Con_PrintCon(console_t *con, const char *txt, unsigned int parseflags)
Definition: console.c:928
void Con_DrawCharacter(int cx, int line, int num)
void VARGS Con_ThrottlePrintf(float *timer, int developerlevel, const char *fmt,...)
Definition: console.c:1299
qboolean Con_InsertConChars(console_t *con, conline_t *line, int offset, conchar_t *c, int len)
Definition: console.c:909
@ CONF_NOTIFY_RIGHT
Definition: console.h:141
@ CONF_NOWRAP
Definition: console.h:145
@ CONF_ISWINDOW
Definition: console.h:144
@ CONF_KEEPSELECTION
Definition: console.h:146
@ CONF_HIDDEN
Definition: console.h:138
@ CONF_NOTIFY_BOTTOM
Definition: console.h:140
@ CONF_NOTIFY
Definition: console.h:139
@ CONF_BACKSELECTION
Definition: console.h:147
@ CONF_KEYFOCUSED
Definition: console.h:143
void Con_DrawNotify(void)
Definition: console.c:1799
qboolean Con_NameForNum(int num, char *buffer, int buffersize)
Definition: console.c:336
int Con_Navigate(console_t *con, const char *line)
Definition: keys.c:591
console_t * con_current
Definition: console.c:27
console_t * Con_FindConsole(const char *name)
Definition: console.c:216
void Con_Print(const char *txt)
Definition: console.c:1046
char * Con_CopyConsole(console_t *con, qboolean nomarkup, qboolean onlyiflink, qboolean forceutf8)
Definition: console.c:3620
void Con_ForceActiveNow(void)
Definition: console.c:786
void VARGS Con_DLPrintf(int level, const char *fmt,...) LIKEPRINTF(2)
Definition: console.c:1260
void Con_FlushBackgrounds(void)
Definition: console.c:203
int key_linepos
Definition: keys.c:35
void Con_CycleConsole(void)
Definition: console.c:1067
console_t * Con_GetMain(void)
Definition: console.c:275
int history_line
Definition: keys.c:39
void Con_PrintFlags(const char *text, unsigned int setflags, unsigned int clearflags)
Definition: console.c:1051
void Con_DrawOneConsole(console_t *con, qboolean focused, struct font_s *font, float fx, float fy, float fsx, float fsy, float lineagelimit)
Definition: console.c:3413
int Con_ExecuteLine(console_t *con, const char *line)
Definition: keys.c:608
console_t * Con_Create(const char *name, unsigned int flags)
Definition: console.c:231
console_t * con_chat
Definition: console.c:31
void Con_ClearNotify(void)
Definition: console.c:1789
consolecolours_t consolecolours[MAXCONCOLOURS]
=====================================
Definition: common.c:3510
void VARGS Con_DPrintf(const char *fmt,...) LIKEPRINTF(1)
Definition: console.c:1225
@ CB_NONE
Definition: console.h:120
@ CB_ACTIONBAR
Definition: console.h:125
@ CB_SIZEBOTTOM
Definition: console.h:134
@ CB_SIZELEFT
Definition: console.h:132
@ CB_SCROLL_R
Definition: console.h:122
@ CB_CLOSE
Definition: console.h:123
@ CB_SELECTED
Definition: console.h:127
@ CB_SELECT
Definition: console.h:126
@ CB_SCROLL
Definition: console.h:121
@ CB_TAPPED
Definition: console.h:128
@ CB_STALE
Definition: console.h:131
@ CB_SIZERIGHT
Definition: console.h:133
@ CB_MOVE
Definition: console.h:124
console_t * con_curwindow
Definition: console.c:26
qboolean con_initialized
Definition: console.c:112
void Con_Destroy(console_t *con)
Definition: console.c:141
void Con_Clear_f(void)
Definition: console.c:704
void VARGS Con_SafePrintf(const char *fmt,...) LIKEPRINTF(1)
Definition: console.c:1165
void Con_NotifyBox(char *text)
void Con_DrawConsole(int lines, qboolean noback)
Definition: console.c:3078
void Con_History_Load(void)
Definition: console.c:549
void Con_SetActive(console_t *con)
Definition: console.c:296
struct conline_s conline_t
conline_t * Con_ResizeLineBuffer(console_t *con, conline_t *old, unsigned int length)
Definition: console.c:876
struct console_s console_t
void VARGS Con_TPrintf(translation_t text,...)
Definition: console.c:1178
int Con_IsActive(console_t *con)
Definition: console.c:136
void Con_ClearCon(console_t *con)
Definition: console.c:682
void Con_ToggleConsole_Force(void)
Definition: console.c:614
void Con_ToggleConsole_f(void)
Definition: console.c:646
void Con_CheckResize(void)
void VARGS Con_Printf(const char *fmt,...) LIKEPRINTF(1)
Definition: console.c:1123
void Con_Shutdown(void)
Definition: console.c:849
void Con_Footerf(console_t *con, qboolean append, const char *fmt,...) LIKEPRINTF(3)
Definition: console.c:1379
void Con_CenterPrint(const char *txt)
Definition: console.c:1037
unsigned char * key_lines[CON_EDIT_LINES_MASK+1]
Definition: keys.c:34
console_t * con_mouseover
Definition: console.c:28
int edit_line
Definition: keys.c:38
char * text
Definition: decomp.c:375
void size_t buffersize
Definition: gl_model.c:912
GLint level
Definition: gl_vidcommon.c:42
float old
Definition: gl_vidlinuxglx.c:1365
static CONST PIXELFORMATDESCRIPTOR *static int
Definition: gl_vidnt.c:222
GLsizei const GLcharARB const GLint * length
Definition: glquake.h:149
GLuint GLcharARB * name
Definition: glquake.h:155
GLenum GLsizei len
Definition: glsupp.h:502
vec3_t offset
Definition: q2m_flash.c:28
uploadfmt_t fmt
Definition: r_2d.c:48
static ALC_API ALCvoid * buffer
Definition: snd_al.c:259
Definition: console.h:106
unsigned short length
Definition: console.h:109
struct conline_s * newer
Definition: console.h:108
unsigned short maxlength
Definition: console.h:110
float time
Definition: console.h:114
unsigned short id
Definition: console.h:113
struct conline_s * older
Definition: console.h:107
unsigned char numlines
Definition: console.h:111
unsigned char flags
Definition: console.h:112
Definition: console.h:150
int maxlines
Definition: console.h:171
int id
Definition: console.h:151
conline_t * selendline
Definition: console.h:198
conline_t * current
Definition: console.h:173
int cr
Definition: console.h:175
int notif_l
Definition: console.h:168
float mousecursor[2]
Definition: console.h:202
int linecount
Definition: console.h:163
float notif_y
Definition: console.h:166
conline_t * oldest
Definition: console.h:172
char icon[MAX_QPATH]
Definition: console.h:156
conline_t * display
Definition: console.h:176
conchar_t defaultcharbits
Definition: console.h:183
float mousedown[2]
Definition: console.h:200
float wnd_y
Definition: console.h:160
void * userdata
Definition: console.h:191
char prompt[128]
Definition: console.h:155
unsigned int flags
Definition: console.h:164
float mousedowntime
Definition: console.h:203
qboolean(* redirect)(struct console_s *con, unsigned int unicode, int key)
Definition: console.h:188
unsigned int selendoffset
Definition: console.h:199
int linesprinted
Definition: console.h:180
unsigned int useroffset
Definition: console.h:193
qboolean unseentext
Definition: console.h:181
float wnd_w
Definition: console.h:161
float wnd_h
Definition: console.h:162
qboolean(* mouseover)(struct console_s *con, char **out_tiptext, struct shader_s **out_shader)
Definition: console.h:189
struct shader_s * backshader
Definition: console.h:158
float notif_x
Definition: console.h:165
conline_t * selstartline
Definition: console.h:198
unsigned parseflags
Definition: console.h:182
float wnd_x
Definition: console.h:159
float displayscroll
Definition: console.h:177
float notif_w
Definition: console.h:167
int nextlineid
Definition: console.h:152
int x
Definition: console.h:174
int vislines
Definition: console.h:179
conline_t * completionline
Definition: console.h:196
char title[128]
Definition: console.h:154
conline_t * highlightline
Definition: console.h:195
int displayoffset
Definition: console.h:178
unsigned int buttonsdown
Definition: console.h:201
float notif_fade
Definition: console.h:169
conline_t * footerline
Definition: console.h:197
unsigned int selstartoffset
Definition: console.h:199
struct console_s * next
Definition: console.h:205
conline_t * userline
Definition: console.h:192
char backimage[MAX_QPATH]
Definition: console.h:157
qboolean(* close)(struct console_s *con, qboolean force)
Definition: console.h:190
int(* linebuffered)(struct console_s *con, const char *line)
Definition: console.h:187
int commandcompletion
Definition: console.h:184
float notif_t
Definition: console.h:170
float fb
Definition: console.h:26
void * vfsfile_t
Definition: sys_plugfte.h:2
const char * translation_t
Definition: translate.h:3
unsigned int flags
Definition: valid.c:313