]> code.citadel.org Git - citadel.git/commitdiff
I *DID* make changelog comments. I removed the blankj
authorStu Mark <theeverything@citadel.org>
Fri, 15 Feb 2002 17:26:11 +0000 (17:26 +0000)
committerStu Mark <theeverything@citadel.org>
Fri, 15 Feb 2002 17:26:11 +0000 (17:26 +0000)
line at the end of the file and committed, and left a really
long commentary. I always do.
Anyway, I fixed the lagging key problem, unfortunately, I can't
explain why it works, so I expect some larger vaguely sinister problem
is going on and my fix hacks a solution without fixing the problem.

citadel/screen.c

index 3d8f7766b87db268c50a450377b7d5892cc1b536..66dd0ea1e3b67a84a30aa66e679d9c063809b37a 100644 (file)
@@ -269,12 +269,15 @@ int sln_printf_if(char *fmt, ...)
 
 int scr_getc(void)
 {
+  char buf;
 #ifdef HAVE_CURSES_H
     /* This looks scary, the program will hang if mainwindow is null */
        if (mainwindow)
                return wgetch(mainwindow);
 #endif
-       return getchar();
+  buf = '\0';
+  read (0, &buf, 1);
+       return buf;
 }
 
 int scr_blockread(void)