cl_console.h File Reference

Console header file. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define CONSOLE_COLORED_TEXT_MASK   128
#define CONSOLE_PROMPT_CHAR   ']'

Functions

void Con_DrawCharacter (int cx, int line, int num)
void Con_Scroll (int scroll)
 Scrolls the console.
void Con_CheckResize (void)
 If the line width has changed, reformat the buffer.
void Con_Init (void)
void Con_DrawConsole (float frac)
 Draws the console with the solid background.
void Con_Print (const char *txt)
 Handles cursor positioning, line wrapping, etc All console printing must go through this in order to be logged to disk If no console is visible, the text will appear at the top of the game window.
void Con_DrawNotify (void)
 Draws the last few lines of output transparently over the game top.
void Con_ClearNotify (void)
 Clear the notify times to ensure that every message will disappear from screen.
void Con_ToggleConsole_f (void)
void Con_Close (void)
 Hide the gameconsole if active.
void Con_SaveConsoleHistory (void)
 Stores the console history.
void Con_LoadConsoleHistory (void)
 Load the console history.

Variables

const int con_fontHeight
const int con_fontWidth
const int con_fontShift

Detailed Description

Console header file.

Definition in file cl_console.h.


Define Documentation

#define CONSOLE_COLORED_TEXT_MASK   128
#define CONSOLE_PROMPT_CHAR   ']'

Definition at line 47 of file cl_console.h.

Referenced by Key_Console(), and Key_Init().


Function Documentation

void Con_CheckResize ( void   ) 

If the line width has changed, reformat the buffer.

Definition at line 162 of file cl_console.c.

References Con_ClearNotify(), con_fontShift, CON_TEXTSIZE, console_t::currentLine, console_t::displayLine, i, console_t::lineWidth, console_t::text, console_t::totalLines, viddef, and viddef_t::width.

Referenced by SCR_DrawConsole().

void Con_ClearNotify ( void   ) 

Clear the notify times to ensure that every message will disappear from screen.

Definition at line 131 of file cl_console.c.

References i, NUM_CON_TIMES, and console_t::times.

Referenced by Con_CheckResize(), Con_ToggleChat_f(), Con_ToggleConsole_f(), and SCR_EndLoadingPlaque().

void Con_Close ( void   ) 

Hide the gameconsole if active.

Definition at line 376 of file cl_console.c.

References cls, key_console, key_game, Key_SetDest(), and client_static_s::keyDest.

void Con_DrawCharacter ( int  cx,
int  line,
int  num 
)
void Con_DrawConsole ( float  frac  ) 
void Con_DrawNotify ( void   ) 
void Con_Init ( void   ) 
void Con_LoadConsoleHistory ( void   ) 
void Con_Print ( const char *  txt  ) 

Handles cursor positioning, line wrapping, etc All console printing must go through this in order to be logged to disk If no console is visible, the text will appear at the top of the game window.

See also:
Sys_ConsoleOutput

Definition at line 306 of file cl_console.c.

void Con_SaveConsoleHistory ( void   ) 

Stores the console history.

See also:
Con_LoadConsoleHistory

Definition at line 235 of file cl_console.c.

References Com_Printf(), CONSOLE_HISTORY_FILENAME, qFILE_s::f, f, FILE_WRITE, FS_CloseFile(), FS_OpenFile(), FS_Write(), historyLine, i, cvar_s::integer, keyLines, and MAXCMDLINE.

Referenced by CL_Shutdown().

void Con_Scroll ( int  scroll  ) 

Scrolls the console.

Parameters:
[in] scroll Lines to scroll

Definition at line 119 of file cl_console.c.

References console_t::currentLine, and console_t::displayLine.

Referenced by Key_Console().

void Con_ToggleConsole_f ( void   ) 

Variable Documentation

const int con_fontHeight

Definition at line 63 of file cl_console.c.

Referenced by Con_DrawConsole(), Con_DrawInput(), Con_DrawNotify(), and R_DrawChar().

const int con_fontShift

Definition at line 65 of file cl_console.c.

Referenced by Con_CheckResize(), Con_DrawConsole(), Con_DrawInput(), and Con_DrawNotify().

const int con_fontWidth

Generated by  doxygen 1.6.2