| ... | ... |
@@ -19,6 +19,11 @@ void tty_init(tty_t *tty){
|
| 19 | 19 |
|
| 20 | 20 |
struct termios new_termios = tty->original_termios; |
| 21 | 21 |
|
| 22 |
+ /* |
|
| 23 |
+ * Disable both of |
|
| 24 |
+ * ICANON Canonical input (erase and kill processing). |
|
| 25 |
+ * ECHO Enable echo. |
|
| 26 |
+ */ |
|
| 22 | 27 |
new_termios.c_lflag &= ~(ICANON | ECHO); |
| 23 | 28 |
|
| 24 | 29 |
tcsetattr(tty->fdin, TCSANOW, &new_termios); |