1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-01 22:05:08 +00:00
freebsd-ports/chinese/pine4/files/patch-ak

12 lines
481 B
Plaintext
Raw Normal View History

--- pico/estruct.h.orig Fri May 29 06:56:52 1998
+++ pico/estruct.h Wed Jul 15 17:02:30 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