summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1995-07-21 13:56:29 +0000
committerbde <bde@FreeBSD.org>1995-07-21 13:56:29 +0000
commit3ffd437ad781fe0b5bbe1757aff97c510383f166 (patch)
tree3ae15dcc94035c6d0b7ad4c23d0ee3f5c5418c63
parent7e7ec9acb6a342e9a2e4063d83c6c0e064e75c35 (diff)
downloadFreeBSD-src-3ffd437ad781fe0b5bbe1757aff97c510383f166.zip
FreeBSD-src-3ffd437ad781fe0b5bbe1757aff97c510383f166.tar.gz
Obtained from: ancient usenet posting as applied to 1.1.5
First of many changes required to restore lost stability to the tty driver. ECHONL is supposed to enable echoing of NL when ECHO is off, but it enabled echoing of everything except NL.
-rw-r--r--sys/kern/tty.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/tty.c b/sys/kern/tty.c
index e94ffd7..78eb1cf 100644
--- a/sys/kern/tty.c
+++ b/sys/kern/tty.c
@@ -36,7 +36,7 @@
* SUCH DAMAGE.
*
* @(#)tty.c 8.8 (Berkeley) 1/21/94
- * $Id: tty.c,v 1.47 1995/06/23 21:20:10 ache Exp $
+ * $Id: tty.c,v 1.48 1995/06/24 16:28:20 ache Exp $
*/
#include "snp.h"
@@ -1992,7 +1992,7 @@ ttyecho(c, tp)
if (!ISSET(tp->t_state, TS_CNTTB))
CLR(tp->t_lflag, FLUSHO);
if ((!ISSET(tp->t_lflag, ECHO) &&
- (!ISSET(tp->t_lflag, ECHONL) || c == '\n')) ||
+ (c != '\n' || !ISSET(tp->t_lflag, ECHONL))) ||
ISSET(tp->t_lflag, EXTPROC))
return;
if (ISSET(tp->t_lflag, ECHOCTL) &&
OpenPOWER on IntegriCloud