X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;f=console.h;h=9042ac069b8d2b4768215eac0e1bf6e192136966;hb=fdc383f68458695b081a8418beb36d7097c6f455;hp=582731253d9da3e41847ee3b88bc686d7b36e408;hpb=d7035ef4229a2462ad59a67160494593fbd8f2e0;p=xonotic%2Fdarkplaces.git diff --git a/console.h b/console.h index 58273125..9042ac06 100644 --- a/console.h +++ b/console.h @@ -18,26 +18,39 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ +#ifndef CONSOLE_H +#define CONSOLE_H + // // console // extern int con_totallines; extern int con_backscroll; -extern qboolean con_forcedup; // because no entities to refresh extern qboolean con_initialized; -extern byte *con_chars; -extern int con_notifylines; // scan lines to clear for notify lines - -void Con_DrawCharacter (int cx, int line, int num); +extern qbyte *con_chars; +extern int con_notifylines; // scan lines to clear for notify lines void Con_CheckResize (void); void Con_Init (void); -void Con_DrawConsole (int lines, qboolean drawinput); -void Con_Print (char *txt); -void Con_Printf (char *fmt, ...); -void Con_DPrintf (char *fmt, ...); -void Con_SafePrintf (char *fmt, ...); +void Con_DrawConsole (int lines); +void Con_Print (const char *txt); +void Con_Printf (const char *fmt, ...); +void Con_DPrintf (const char *fmt, ...); +void Con_SafePrintf (const char *fmt, ...); void Con_Clear_f (void); void Con_DrawNotify (void); void Con_ClearNotify (void); void Con_ToggleConsole_f (void); + +// wrapper function to attempt to either complete the command line +// or to list possible matches grouped by type +// (i.e. will display possible variables, aliases, commands +// that match what they've typed so far) +void Con_CompleteCommandLine(void); + +// Generic libs/util/console.c function to display a list +// formatted in columns on the console +void Con_DisplayList(const char **list); + +#endif +