tSome problems with the curses client missing screen resize events fixed. - vaccinewars - be a doctor and try to vaccinate the world
(HTM) git clone git://src.adamsgaard.dk/vaccinewars
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit 72d6fe8767a92c35d956100700defeba2029127b
(DIR) parent 491a6cc6f7b198f8419129831c0c656de7c719bc
(HTM) Author: Ben Webb <ben@salilab.org>
Date: Mon, 23 Jun 2003 11:21:59 +0000
Some problems with the curses client missing screen resize events fixed.
Diffstat:
M ChangeLog | 1 +
M src/cursesport/cursesport.c | 7 ++-----
2 files changed, 3 insertions(+), 5 deletions(-)
---
(DIR) diff --git a/ChangeLog b/ChangeLog
t@@ -1,6 +1,7 @@
cvs
- Fix for a curses client crash if the D key is pressed during attacks
by the cops
+ - Some problems with the curses client missing screen resize events fixed
1.5.9 07-06-2003
- The messages window in the curses client can now be scrolled with the
(DIR) diff --git a/src/cursesport/cursesport.c b/src/cursesport/cursesport.c
t@@ -251,7 +251,7 @@ void standend(void)
/*
* Calls the curses getch() function; if the key pressed is Ctrl-L
- * then automatically clears and redraws the screen, otherwise
+ * then automatically clears and redraws the screen, otherwise just
* passes the key back to the calling routine.
*/
int bgetch()
t@@ -259,11 +259,8 @@ int bgetch()
int c;
c = getch();
- /* N.B. Ignore ERR, which seems to be sometimes generated by screen
- * resize events; we deal with these by trapping SIGWINCH instead */
- while (c == '\f' || c == KEY_RESIZE || c == ERR) {
+ while (c == '\f') {
wrefresh(curscr);
- c = getch();
}
return c;
}