stty sane should set the echo bits.

PR:	73423
Submitted by:	Michiel Boland <michiel@boland.org>
Overlooked by:	phk
This commit is contained in:
Poul-Henning Kamp 2004-11-02 18:10:01 +00:00
parent c6eea89879
commit 9372ddf0d1
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=137131

View File

@ -263,7 +263,7 @@ f_sane(struct info *ip)
ip->t.c_iflag |= ICRNL;
/* preserve user-preference flags in lflag */
#define LKEEP (ECHOKE|ECHOE|ECHOK|ECHOPRT|ECHOCTL|ALTWERASE|TOSTOP|NOFLSH)
ip->t.c_lflag = TTYDEF_LFLAG | (ip->t.c_lflag & LKEEP);
ip->t.c_lflag = TTYDEF_LFLAG_ECHO | (ip->t.c_lflag & LKEEP);
ip->t.c_oflag = TTYDEF_OFLAG;
ip->set = 1;
}