mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 15:22:04 +00:00
windows get resized/moved properly now and the input line gets redrawn when
the terminal resizes. Still need to work on the status bar and output window
This commit is contained in:
parent
cb4f7eb808
commit
ac58ecb10b
1 changed files with 10 additions and 1 deletions
|
@ -280,6 +280,15 @@ C_ProcessInput (void)
|
|||
getmaxyx (stdscr, screen_y, screen_x);
|
||||
con_linewidth = screen_x;
|
||||
input_line->width = screen_x;
|
||||
/* while a little ugly, this is needed because ncurses auto
|
||||
* resizing doesn't always do the right thing
|
||||
*/
|
||||
wresize (input, 1, screen_x);
|
||||
mvwin (input, screen_y - 1, 0);
|
||||
wresize (status, 1, screen_x);
|
||||
mvwin (status, screen_y - 2, 0);
|
||||
wresize (output, screen_y - 2, screen_x);
|
||||
mvwin (status, 0, 0);
|
||||
wrefresh (curscr);
|
||||
}
|
||||
}
|
||||
|
@ -327,7 +336,7 @@ C_ProcessInput (void)
|
|||
break;
|
||||
default:
|
||||
if (ch < 0 || ch >= 256)
|
||||
return;
|
||||
ch = 0;
|
||||
}
|
||||
Con_ProcessInputLine (input_line, ch);
|
||||
} else
|
||||
|
|
Loading…
Reference in a new issue