mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 15:22:04 +00:00
sv_use_curses 0 to disable curses, and fix the know issues with using the
old console
This commit is contained in:
parent
aade80a8d7
commit
52648b21e3
1 changed files with 5 additions and 1 deletions
|
@ -110,6 +110,9 @@ C_ExecLine (const char *line)
|
|||
static void
|
||||
C_Init (void)
|
||||
{
|
||||
cvar_t *curses = Cvar_Get ("sv_use_curses", "1", CVAR_ROM, NULL,
|
||||
"set to 0 to disable curses server console");
|
||||
use_curses = curses->int_val;
|
||||
#ifdef HAVE_CURSES_H
|
||||
if (use_curses) {
|
||||
initscr ();
|
||||
|
@ -291,6 +294,7 @@ C_ProcessInput (void)
|
|||
while (1) {
|
||||
const char *cmd = Sys_ConsoleInput ();
|
||||
if (!cmd)
|
||||
break;
|
||||
Cbuf_AddText (cmd);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue