routines, because apparently I broke it. I would spin on the login
name. So I put most of it back the way it was, now it works.
Sorry about that IO.
No amount of my poking around seems to make ChangeLog work, maybe it's
my version of CVS.
int inkey(void)
{ /* get a character from the keyboard, with */
int a; /* the watchdog timer in effect if necessary */
-#ifndef HAVE_CURSES_H /* avoid compiler warning */
fd_set rfds;
struct timeval tv;
-#endif
time_t start_time;
scr_flush();
time(&start_time);
do {
-#ifdef HAVE_CURSES_H /* IO, maybe you wanna move this to screen.c */
- a = scr_blockread();
-#else
/* This loop waits for keyboard input. If the keepalive
* timer expires, it sends a keepalive to the server if
* necessary and then waits again.
* (There's a hole in the bucket...)
*/
a = scr_getc();
-#endif
-
-
if (a == 127)
a = 8;
if (a > 126)
{
char buf;
#ifdef HAVE_CURSES_H
- /* This looks scary, the program will hang if mainwindow is null */
if (mainwindow)
return wgetch(mainwindow);
#endif