]> de.git.xonotic.org Git - xonotic/darkplaces.git/blob - console.h
changed main() argv parameter to non-const, and casting it to const on assignment...
[xonotic/darkplaces.git] / console.h
1 /*
2 Copyright (C) 1996-1997 Id Software, Inc.
3
4 This program is free software; you can redistribute it and/or
5 modify it under the terms of the GNU General Public License
6 as published by the Free Software Foundation; either version 2
7 of the License, or (at your option) any later version.
8
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
12
13 See the GNU General Public License for more details.
14
15 You should have received a copy of the GNU General Public License
16 along with this program; if not, write to the Free Software
17 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
18
19 */
20
21 #ifndef CONSOLE_H
22 #define CONSOLE_H
23
24 //
25 // console
26 //
27 extern int con_totallines;
28 extern int con_backscroll;
29 extern qboolean con_initialized;
30 extern qbyte *con_chars;
31
32 void Con_CheckResize (void);
33 void Con_Init (void);
34 void Con_DrawConsole (int lines);
35 void Con_Print(const char *txt);
36 void Con_Printf(const char *fmt, ...);
37 void Con_DPrint(const char *msg);
38 void Con_DPrintf(const char *fmt, ...);
39 void Con_SafePrint(const char *msg);
40 void Con_SafePrintf(const char *fmt, ...);
41 void Con_Clear_f (void);
42 void Con_DrawNotify (void);
43 void Con_ClearNotify (void);
44 void Con_ToggleConsole_f (void);
45
46 // wrapper function to attempt to either complete the command line
47 // or to list possible matches grouped by type
48 // (i.e. will display possible variables, aliases, commands
49 // that match what they've typed so far)
50 void Con_CompleteCommandLine(void);
51
52 // Generic libs/util/console.c function to display a list
53 // formatted in columns on the console
54 void Con_DisplayList(const char **list);
55
56
57 //
58 // log
59 //
60 void Log_Init (void);
61 void Log_Close (void);
62 void Log_Start (void);
63 // Log_Print and Log_Printf can be used as soon as the FS initialization is done
64 void Log_Print(const char *logfilename, const char *msg);
65 void Log_Printf(const char *logfilename, const char *fmt, ...);
66
67 #endif
68