1 /* 2 Copyright (C) 1996-2001 Id Software, Inc. 3 Copyright (C) 2002-2009 John Fitzgibbons and others 4 Copyright (C) 2010-2014 QuakeSpasm developers 5 6 This program is free software; you can redistribute it and/or 7 modify it under the terms of the GNU General Public License 8 as published by the Free Software Foundation; either version 2 9 of the License, or (at your option) any later version. 10 11 This program is distributed in the hope that it will be useful, 12 but WITHOUT ANY WARRANTY; without even the implied warranty of 13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 14 15 See the GNU General Public License for more details. 16 17 You should have received a copy of the GNU General Public License 18 along with this program; if not, write to the Free Software 19 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 20 21 */ 22 23 #ifndef __CONSOLE_H 24 #define __CONSOLE_H 25 26 // 27 // console 28 // 29 extern int con_totallines; 30 extern int con_backscroll; 31 extern qboolean con_forcedup; // because no entities to refresh 32 extern qboolean con_initialized; 33 extern byte *con_chars; 34 35 extern char con_lastcenterstring[]; //johnfitz 36 37 void Con_DrawCharacter (int cx, int line, int num); 38 39 void Con_CheckResize (void); 40 void Con_Init (void); 41 void Con_DrawConsole (int lines, qboolean drawinput); 42 void Con_Printf (const char *fmt, ...) FUNC_PRINTF(1,2); 43 void Con_DWarning (const char *fmt, ...) FUNC_PRINTF(1,2); //ericw 44 void Con_Warning (const char *fmt, ...) FUNC_PRINTF(1,2); //johnfitz 45 void Con_DPrintf (const char *fmt, ...) FUNC_PRINTF(1,2); 46 void Con_DPrintf2 (const char *fmt, ...) FUNC_PRINTF(1,2); //johnfitz 47 void Con_SafePrintf (const char *fmt, ...) FUNC_PRINTF(1,2); 48 void Con_DrawNotify (void); 49 void Con_ClearNotify (void); 50 void Con_ToggleConsole_f (void); 51 qboolean Con_IsRedirected(void); //returns true if its redirected. this generally means that things are a little more verbose. 52 void Con_Redirect(void(*flush)(const char *text)); 53 54 void Con_NotifyBox (const char *text); // during startup for sound / cd warnings 55 56 void Con_Show (void); 57 void Con_Hide (void); 58 59 const char *Con_Quakebar (int len); 60 void Con_TabComplete (void); 61 void Con_LogCenterPrint (const char *str); 62 63 // 64 // debuglog 65 // 66 void LOG_Init (quakeparms_t *parms); 67 void LOG_Close (void); 68 void Con_DebugLog (const char *msg); 69 70 #endif /* __CONSOLE_H */ 71 72