1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-30 21:49:25 +00:00
freebsd-ports/chinese/pine4/files/patch-an

12 lines
481 B
Plaintext
Raw Normal View History

--- pico/estruct.h.orig Fri May 29 06:56:52 1998
+++ pico/estruct.h Tue Aug 4 12:42:14 1998
@@ -125,7 +125,7 @@
#define LOBIT_CHAR(C) ((C) > 0x1f && (C) < 0x7f)
#define HIBIT_CHAR(C) ((C) > 0x7f && (C) <= 0xff)
#define HIBIT_OK(C) (!(gmode & MDHBTIGN))
-#define VALID_KEY(C) (LOBIT_CHAR(C) || (HIBIT_OK(C) && HIBIT_CHAR(C)))
+#define VALID_KEY(C) (((C) & 0x80) ? 1 : LOBIT_CHAR(C))
#define ctrl(c) ((c) & 0x1f) /* control character mapping */
#define STDIN_FD 0