fixed bug in term.c with c_iflag

This commit is contained in:
Edward Emelianov
2022-11-08 22:39:07 +03:00
parent b147fee176
commit 511a83e506
3 changed files with 6 additions and 0 deletions

1
term.c
View File

@@ -112,6 +112,7 @@ static int tty_init(TTY_descr *descr){
}
descr->tty = descr->oldtty;
descr->tty.c_lflag = 0; // ~(ICANON | ECHO | ECHOE | ISIG)
descr->tty.c_iflag = 0;
descr->tty.c_oflag = 0;
descr->tty.c_cflag = descr->baudrate|CS8|CREAD|CLOCAL; // 9.6k, 8N1, RW, ignore line ctrl
descr->tty.c_cc[VMIN] = 0; // non-canonical mode