egray@fthood.UUCP (09/19/88)
Will they never end??? This is patch #3 to Pcomm v1.1. This patch will fix a bunch of problems if you're using the older versions of curses(). This patch will also fix the problem with parity extension on reading the keyboard. It seems that some version of Unix/curses diddle with the parity when converting from the "curses mode" to the "reset mode", causing the ^A to be read as 0x81 rather than 0x01. Emmet P. Gray US Army, HQ III Corps & Fort Hood ...!uunet!uiucuxc!fthood!egray Attn: AFZF-DE-ENV Directorate of Engineering & Housing Environmental Management Office Fort Hood, TX 76544-5057 ------------------------------------------------------------------------------ *** release/curses.c Sun Sep 18 12:01:42 1988 --- curses.c Sun Sep 18 12:06:38 1988 *************** *** 394,398 #ifdef WGETCH_BROKE read(0, &c, 1); ! key = c; #else /* WGETCH_BROKE */ key = wgetch(win); --- 394,398 ----- #ifdef WGETCH_BROKE read(0, &c, 1); ! key = c & 0x7f; #else /* WGETCH_BROKE */ key = wgetch(win); *************** *** 433,437 * key was pressed. The window argument is not used! */ ! int nodelay(win, flag) --- 433,437 ----- * key was pressed. The window argument is not used! */ ! /*ARGSUSED*/ int nodelay(win, flag) *** release/di_win.c Sun Sep 18 12:01:42 1988 --- di_win.c Sun Sep 18 11:50:10 1988 *************** *** 8,11 #include <curses.h> #include "config.h" #include "dial_dir.h" #include "misc.h" --- 8,14 ----- #include <curses.h> #include "config.h" + #ifdef OLDCURSES + #include <termio.h> + #endif /* OLDCURSES */ #include "dial_dir.h" #include "misc.h" *** release/info.c Sun Sep 18 12:36:46 1988 --- info.c Sun Sep 18 16:44:30 1988 *************** *** 5,9 #define VERSION "1.1" ! #define DATE "15 Sep 88" #include <stdio.h> --- 5,9 ----- #define VERSION "1.1" ! #define DATE "19 Sep 88" #include <stdio.h> *** release/main.c Sun Sep 18 12:36:46 1988 --- main.c Sun Sep 18 16:44:20 1988 *************** *** 19,22 * patch #1 13 Sep 88 * patch #2 15 Sep 88 */ --- 19,23 ----- * patch #1 13 Sep 88 * patch #2 15 Sep 88 + * patch #3 19 Sep 88 */ *** release/misc.h Sun Sep 18 12:01:42 1988 --- misc.h Sun Sep 18 11:49:04 1988 *************** *** 33,37 #ifdef OLDCURSES ! typedef char chtype #endif /* OLDCURSES */ --- 33,37 ----- #ifdef OLDCURSES ! typedef char chtype; #endif /* OLDCURSES */ *** release/terminal.c Sun Sep 18 12:04:48 1988 --- terminal.c Sun Sep 18 12:10:04 1988 *************** *** 47,50 while (1) { read(0, &c, 1); /* is it the hot key? */ if (c == param->hot) { --- 47,51 ----- while (1) { read(0, &c, 1); + c &= 0x7f; /* is it the hot key? */ if (c == param->hot) { *** release/x_ascii.c Sun Sep 18 12:01:43 1988 --- x_ascii.c Sun Sep 18 11:54:55 1988 *************** *** 11,14 #include <signal.h> #include "config.h" #include "misc.h" #include "param.h" --- 11,17 ----- #include <signal.h> #include "config.h" + #ifdef OLDCURSES + #include <termio.h> + #endif /* OLDCURSES */ #include "misc.h" #include "param.h"