Commit 47f003c6 authored by Niels Möller's avatar Niels Möller
Browse files

* src/tty.h (CFMAKERAW): Set the VMIN and VTIME attributes.

Rev: src/tty.h:1.6
parent afaa2ea0
......@@ -41,12 +41,16 @@ int tty_decode_term_mode(struct termios *ios, UINT32 t_len, UINT8 *t_modes);
#if HAVE_CFMAKERAW
#define CFMAKERAW cfmakeraw
#else /* !HAVE_CFMAKERAW */
/* This definition is probably from the linux cfmakeraw man page. */
/* The flags part definition is probably from the linux cfmakeraw man
* page. We also set the MIN and TIME attributes (note that these use
* the same fields as VEOF and VEOL). */
#define CFMAKERAW(ios) do { \
(ios)->c_iflag &= ~(IGNBRK|BRKINT|PARMRK|ISTRIP|INLCR|IGNCR|ICRNL|IXON); \
(ios)->c_oflag &= ~OPOST; \
(ios)->c_lflag &= ~(ECHO|ECHONL|ICANON|ISIG|IEXTEN); \
(ios)->c_cflag &= ~(CSIZE|PARENB); (ios)->c_cflag |= CS8; \
(ios)->c_cc[VMIN] = 3; (ios)->c_cc[VTIME] = 2; \
} while(0)
#endif /* !HAVE_CFMAKERAW */
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment