66const
char *
Con_Quakebar(
int len,
char *bar,
size_t bufsize);
77qbool GetMapList (const
char *s,
char *completedname,
int completednamebufferlength);
102#define CON_ERROR "^1"
106#define CON_MASK_HIDENOTIFY 128
107#define CON_MASK_CHAT 1
108#define CON_MASK_INPUT 2
109#define CON_MASK_DEVELOPER 4
110#define CON_MASK_PRINT 8
112typedef struct con_lineinfo_s
124typedef struct conbuffer_s
136#define CONBUFFER_LINES(buf, i) (buf)->lines[((buf)->lines_first + (i)) % (buf)->maxlines]
137#define CONBUFFER_LINES_COUNT(buf) ((buf)->lines_count)
138#define CONBUFFER_LINES_LAST(buf) CONBUFFER_LINES(buf, CONBUFFER_LINES_COUNT(buf) - 1)
void Con_Clear_f(cmd_state_t *cmd)
void Con_Printf(const char *fmt,...) DP_FUNC_PRINTF(1)
Prints to all appropriate console targets.
const char * ConBuffer_GetLine(conbuffer_t *buf, int i)
void Con_CenterPrint(const char *str)
Prints a center-aligned message to the console.
int ConBuffer_FindNextLine(conbuffer_t *buf, unsigned mask_must, unsigned mask_mustnot, int start)
const char * Con_Quakebar(int len, char *bar, size_t bufsize)
Returns a horizontal line.
void ConBuffer_FixTimes(conbuffer_t *buf)
qbool GetMapList(const char *s, char *completedname, int completednamebufferlength)
void Con_CenterPrintf(int maxLineLength, const char *fmt,...) DP_FUNC_PRINTF(2)
Left-pad a string with spaces to make it appear centered.
void ConBuffer_Clear(conbuffer_t *buf)
void Con_DrawNotify(void)
void Con_Print(const char *txt)
Prints to all appropriate console targets, and adds timestamps.
void Con_DrawConsole(int lines, qbool forcedfullscreen)
void ConBuffer_Shutdown(conbuffer_t *buf)
void ConBuffer_DeleteLine(conbuffer_t *buf)
Deletes the first line from the console history.
void Con_MaskPrint(unsigned additionalmask, const char *msg)
Prints to a chosen console target.
int ConBuffer_FindPrevLine(conbuffer_t *buf, unsigned mask_must, unsigned mask_mustnot, int start)
void ConBuffer_DeleteLastLine(conbuffer_t *buf)
Deletes the last line from the console history.
void Con_ClearNotify(void)
Clear all notify lines.
int Con_CompleteCommandLine(cmd_state_t *cmd, qbool is_console)
wrapper function to attempt to either complete the command line or to list possible matches grouped b...
void Con_Rcon_Redirect_Init(lhnetsocket_t *sock, lhnetaddress_t *dest, qbool proquakeprotocol)
void ConBuffer_AddLine(conbuffer_t *buf, const char *line, int len, unsigned mask)
Appends a given string as a new line to the console.
void Log_DestBuffer_Flush(void)
call this once per frame to send out replies to rcon streaming clients
void Con_DPrint(const char *msg)
A Con_Print that only shows up if the "developer" cvar is set.
void Con_Init_Commands(void)
void Con_Rcon_Redirect_End(void)
void Log_Printf(const char *logfilename, const char *fmt,...) DP_FUNC_PRINTF(2)
void Con_DPrintf(const char *fmt,...) DP_FUNC_PRINTF(1)
A Con_Printf that only shows up if the "developer" cvar is set.
void Con_Rcon_Redirect_Abort(void)
void ConBuffer_Init(conbuffer_t *buf, int textsize, int maxlines, mempool_t *mempool)
void Con_MaskPrintf(unsigned mask, const char *fmt,...) DP_FUNC_PRINTF(2)
void Con_CheckResize(void)
If the line width has changed, reformat the buffer.
void Con_DisplayList(const char **list)
Generic libs/util/console.c function to display a list formatted in columns on the console.
void Con_ToggleConsole_f(cmd_state_t *cmd)
GLint GLint GLint GLint GLint GLint GLint GLbitfield mask
GLenum GLuint GLenum GLsizei const GLchar * buf
#define DP_FUNC_PRINTF(n)
command interpreter state - the tokenizing and execution of commands, as well as pointers to which cv...
double addtime
used only by console.c
int height
recalculated line height when needed (-1 to unset)
int lines_count
cyclic buffer