Browse Source

tty: support additional EOL character

K. Lange 3 years ago
parent
commit
a40fe23a50
1 changed files with 1 additions and 1 deletions
  1. 1 1
      kernel/fs/tty.c

+ 1 - 1
kernel/fs/tty.c

@@ -234,7 +234,7 @@ void tty_input_process(pty_t * pty, uint8_t c) {
 				output_process(pty, c);
 			}
 		}
-		if (c == '\n') {
+		if (c == '\n' || (pty->tios.c_cc[VEOL] && c == pty->tios.c_cc[VEOL])) {
 			if (!(pty->tios.c_lflag & ECHO) && (pty->tios.c_lflag & ECHONL)) {
 				output_process(pty, c);
 			}