mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-30 15:12:44 +00:00
stty sane should set the echo bits.
PR: 73423 Submitted by: Michiel Boland <michiel@boland.org> Overlooked by: phk
This commit is contained in:
parent
c6eea89879
commit
9372ddf0d1
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=137131
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user