mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2025-01-01 00:18:15 +01:00
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:
parent
dd77c4bc54
commit
a2a072b542
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=9615
@ -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) &&
|
||||
|
Loading…
Reference in New Issue
Block a user