6589777df7
Patch by Charles Hannum.
28 lines
660 B
Text
28 lines
660 B
Text
$NetBSD: patch-ac,v 1.4 2001/01/07 02:25:35 wiz Exp $
|
|
|
|
--- pbuf.c.orig Mon May 3 17:43:09 1999
|
|
+++ pbuf.c
|
|
@@ -843,20 +843,18 @@
|
|
|
|
int checkKeyPressed() {
|
|
int theChar = getch();
|
|
- unsigned char in_char;
|
|
int rc = 1, numScreens;
|
|
|
|
- if((theChar != EOF)
|
|
- && ((in_char = (unsigned char)theChar)) != 255) {
|
|
+ if((theChar != EOF) && (theChar != ERR)) {
|
|
|
|
/*
|
|
char buf[32];
|
|
|
|
- sprintf(buf, ">%c-%d<", in_char, in_char);
|
|
+ sprintf(buf, ">%c-%d<", theChar, theChar);
|
|
mvprintw(0, 40, buf); refresh();
|
|
sleep(2);
|
|
*/
|
|
- switch(in_char) {
|
|
+ switch(theChar) {
|
|
case 'q':
|
|
case 'Q':
|
|
cleanup(-1);
|