From: Alan Cox Date: Tue, 24 Oct 2017 23:37:21 +0000 (+0100) Subject: tty: Fix ^D echo bug X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=63f3eb24591e75d7e2210d5fbfbb56bd8b3b3deb;p=FUZIX.git tty: Fix ^D echo bug --- diff --git a/Kernel/tty.c b/Kernel/tty.c index 6e1ce73a..33a2f7a9 100644 --- a/Kernel/tty.c +++ b/Kernel/tty.c @@ -11,7 +11,6 @@ * - Parity * - Various misc minor flags * - Software Flow control - * - Don't echo EOF char ? * * Add a small echo buffer to each tty */ @@ -436,7 +435,7 @@ sigout: } wr = insq(q, c); - if (wr) + if (wr && (!canon || c != t->termios.c_cc[VEOF])) tty_echo(minor, c); else tty_putc(minor, '\007'); /* Beep if no more room */