aboutsummaryrefslogtreecommitdiff
path: root/miscutils/microcom.c
diff options
context:
space:
mode:
Diffstat (limited to 'miscutils/microcom.c')
-rw-r--r--miscutils/microcom.c14
1 files changed, 5 insertions, 9 deletions
diff --git a/miscutils/microcom.c b/miscutils/microcom.c
index b87f3273f..fa090057e 100644
--- a/miscutils/microcom.c
+++ b/miscutils/microcom.c
@@ -33,15 +33,11 @@
33// set raw tty mode 33// set raw tty mode
34static void xget1(int fd, struct termios *t, struct termios *oldt) 34static void xget1(int fd, struct termios *t, struct termios *oldt)
35{ 35{
36//TODO: use set_termios_to_raw() 36 get_termios_and_make_raw(fd, t, oldt, 0
37 tcgetattr(fd, oldt); 37 | TERMIOS_CLEAR_ISIG /* ^C is ASCII char 3, not "interrupt me!" */
38 *t = *oldt; 38 | TERMIOS_RAW_INPUT /* pass all chars verbatim, no special handling or translating CR->NL */
39 cfmakeraw(t); 39 | TERMIOS_RAW_CRNL /* dont convert NL<->CR on output too */
40// t->c_lflag &= ~(ISIG|ICANON|ECHO|IEXTEN); 40 );
41// t->c_iflag &= ~(BRKINT|IXON|ICRNL);
42// t->c_oflag &= ~(ONLCR);
43// t->c_cc[VMIN] = 1;
44// t->c_cc[VTIME] = 0;
45} 41}
46 42
47static int xset1(int fd, struct termios *tio, const char *device) 43static int xset1(int fd, struct termios *tio, const char *device)