Browse code

Document termios flags used

John Hawthorn authored on 07/09/2014 02:19:06
Showing 1 changed files

  • tty.c index 67f85d0..288a5b8 100644
... ...
@@ -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);