mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-22 20:41:20 +00:00
[qwaq] Work around a gcc non-conformance
*sigh*
This commit is contained in:
parent
6e9ee98e88
commit
7e6928d7d5
1 changed files with 4 additions and 4 deletions
|
@ -445,16 +445,16 @@ void qwaq_input_init (qwaq_resources_t *res)
|
||||||
|
|
||||||
// ncurses takes care of input mode for us, so need only tell xterm
|
// ncurses takes care of input mode for us, so need only tell xterm
|
||||||
// what we need
|
// what we need
|
||||||
(void) write(1, MOUSE_MOVES_ON, sizeof (MOUSE_MOVES_ON) - 1);
|
(void) !write(1, MOUSE_MOVES_ON, sizeof (MOUSE_MOVES_ON) - 1);
|
||||||
(void) write(1, SGR_ON, sizeof (SGR_ON) - 1);
|
(void) !write(1, SGR_ON, sizeof (SGR_ON) - 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
void qwaq_input_shutdown (qwaq_resources_t *res)
|
void qwaq_input_shutdown (qwaq_resources_t *res)
|
||||||
{
|
{
|
||||||
// ncurses takes care of input mode for us, so need only tell xterm
|
// ncurses takes care of input mode for us, so need only tell xterm
|
||||||
// what we need
|
// what we need
|
||||||
(void) write(1, SGR_OFF, sizeof (SGR_OFF) - 1);
|
(void) !write(1, SGR_OFF, sizeof (SGR_OFF) - 1);
|
||||||
(void) write(1, MOUSE_MOVES_OFF, sizeof (MOUSE_MOVES_OFF) - 1);
|
(void) !write(1, MOUSE_MOVES_OFF, sizeof (MOUSE_MOVES_OFF) - 1);
|
||||||
|
|
||||||
#ifdef HAVE_SIGACTION
|
#ifdef HAVE_SIGACTION
|
||||||
sigaction (SIGWINCH, &save_winch, 0);
|
sigaction (SIGWINCH, &save_winch, 0);
|
||||||
|
|
Loading…
Reference in a new issue