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.
This commit is contained in:
Bruce Evans 1995-07-21 13:56:29 +00:00
parent dd77c4bc54
commit a2a072b542
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=9615

View File

@ -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) &&