Date: Tue, 2 Nov 2004 17:10:58 +0100 (CET) From: Michiel Boland <michiel@boland.org> To: FreeBSD-gnats-submit@FreeBSD.org Subject: bin/73423: stty -sane disables echo Message-ID: <200411021610.iA2GAw0d097702@xs6.xs4all.nl> Resent-Message-ID: <200411021620.iA2GKR3W029363@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 73423 >Category: bin >Synopsis: stty -sane disables echo >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Nov 02 16:20:27 GMT 2004 >Closed-Date: >Last-Modified: >Originator: Michiel Boland >Release: FreeBSD 6.0-CURRENT i386 >Organization: >Environment: System: FreeBSD leefnet.office.internl.net 6.0-CURRENT FreeBSD 6.0-CURRENT #0: Tue Nov 2 14:55:25 CET 2004 root@leefnet.office.internl.net:/usr/obj/usr/src/sys/LEEFNET i386 >Description: After 'stty sane' is executed, the terminal no longer echos. >How-To-Repeat: Type 'stty sane' >Fix: --- /usr/src/bin/stty/key.c Tue Apr 6 22:06:53 2004 +++ key.c Tue Nov 2 17:02:57 2004 @@ -263,7 +263,7 @@ 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; } >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200411021610.iA2GAw0d097702>