diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2002-03-05 11:15:28 +0300 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2002-03-05 11:15:28 +0300 |
commit | ad2864f4c8dd5157dad2011483c4076416a80f4c (patch) | |
tree | 91247897fcc07860d690839224fc1314fb2e225b /winsup/cygwin/include | |
parent | 8cd4824313b12ec2b243bd4cc8c0b4bc5b2f796d (diff) |
* include/sys/termios.h: Define _POSIX_VDISABLE. Define CCEQ macro.
* fhandler_termios.cc: Include <sys/termios.h>.
(line_edit): Recognize disabled c_cc[] chars. Ignore VDISCARD when
not in ICANON mode.
Diffstat (limited to 'winsup/cygwin/include')
-rw-r--r-- | winsup/cygwin/include/sys/termios.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/winsup/cygwin/include/sys/termios.h b/winsup/cygwin/include/sys/termios.h index a87f10627..c37776111 100644 --- a/winsup/cygwin/include/sys/termios.h +++ b/winsup/cygwin/include/sys/termios.h @@ -195,6 +195,14 @@ details. */ #define NCCS 18 +/* `c_cc' member of 'struct termios' structure can be disabled by + using the value _POSIX_VDISABLE. */ +#define _POSIX_VDISABLE '\0' + +/* Compare a character C to a value VAL from the `c_cc' array in a + `struct termios'. If VAL is _POSIX_VDISABLE, no character can match it. */ +#define CCEQ(val, c) ((c) == (val) && (val) != _POSIX_VDISABLE) + typedef unsigned char cc_t; typedef unsigned int tcflag_t; typedef unsigned int speed_t; |