tty: support additional EOL character

This commit is contained in:
K. Lange 2018-10-26 18:20:09 +09:00
parent 8a58745c27
commit a40fe23a50

View File

@ -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);
}