* Make sure curses will redraw the watch list after 'm' has been used

* ^L and ^R will redraw the entire screen in the watch list


git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@334 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
This commit is contained in:
Jilles Tjoelker 2004-08-23 12:59:33 +00:00
parent ca91ccc027
commit 0817cc32e8
2 changed files with 9 additions and 3 deletions

View File

@ -399,6 +399,10 @@ inprogressmenu ()
case 'q': case 'Q':
return;
case 12: case 18: /* ^L, ^R */
clear ();
break;
default:
doresizewin = 0;
if (isupper (menuchoice))

View File

@ -140,6 +140,7 @@ ttypread (FILE * fp, Header * h, char **buf, int pread)
int counter = 0;
fd_set readfs;
struct timeval w = { 0, 100000 };
struct termios t;
/*
* Read persistently just like tail -f.
@ -178,19 +179,20 @@ ttypread (FILE * fp, Header * h, char **buf, int pread)
break;
case 'm':
tcgetattr (0, &t);
if (!loggedin)
{
initcurses();
loginprompt(1);
if (!loggedin) return READ_RESTART;
}
if (loggedin)
{
initcurses ();
domailuser (chosen_name);
return READ_RESTART;
}
endwin ();
tcsetattr (0, TCSANOW, &t);
return READ_RESTART;
break;
}
}