Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
LSH
lsh
Commits
47f003c6
Commit
47f003c6
authored
Mar 07, 1999
by
Niels Möller
Browse files
* src/tty.h (CFMAKERAW): Set the VMIN and VTIME attributes.
Rev: src/tty.h:1.6
parent
afaa2ea0
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/tty.h
View file @
47f003c6
...
...
@@ -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 */
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment