[console] Fix a build failure without ncurses

It seems that I'd gotten some wires crossed when submitting the issue in
that it was the server console, not qwaq-curses, but fixes #54
This commit is contained in:
Bill Currie 2023-09-03 22:18:25 +09:00
parent 25e27bba64
commit 23b041c2c0

View file

@ -146,11 +146,7 @@ enum {
sv_cursor = 8,
};
#ifdef HAVE_NCURSES
static int use_curses = 1;
#else
static int use_curses = 0;
#endif
static view_t sv_view;
static view_t output;
@ -855,12 +851,14 @@ C_ProcessInput (void)
static void
C_DrawConsole (void)
{
#ifdef HAVE_NCURSES
// only the status bar is drawn because the inputline and output views
// take care of themselves
if (use_curses) {
draw_status (status);
sv_refresh_windows ();
}
#endif
}
static void