misc/90524: reset doesn't fully restore terminal state
Yuri
yuri at tsoft.com
Fri Dec 16 18:00:11 PST 2005
>Number: 90524
>Category: misc
>Synopsis: reset doesn't fully restore terminal state
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: freebsd-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Sat Dec 17 02:00:09 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator: Yuri
>Release: 6.0-RELEASE
>Organization:
NA
>Environment:
FreeBSD xxx.xxx.xxx 6.0-RELEASE FreeBSD 6.0-RELEASE #0: Thu Nov 3 09:36:13 UTC 2005 root at x64.samsco.home:/usr/obj/usr/src/sys/GENERIC i386
>Description:
If I kill vim (ex. kill -9) key mapping changes and backspace key causes printing of ^? instead of removing of the current character in terminal.
'reset' command doesn't restore this either. so it's no way to restore original setting besides of running the command 'stty erase ^?'
Originally 'stty -a' reports:
-----------begin------------------------
speed 38400 baud; 42 rows; 189 columns;
lflags: icanon isig iexten echo echoe echok echoke -echonl echoctl
-echoprt -altwerase -noflsh -tostop -flusho pendin -nokerninfo
-extproc
iflags: -istrip icrnl -inlcr -igncr ixon -ixoff ixany imaxbel -ignbrk
brkint -inpck -ignpar -parmrk
oflags: opost onlcr -ocrnl -oxtabs -onocr -onlret
cflags: cread cs8 -parenb -parodd hupcl -clocal -cstopb -crtscts -dsrflow
-dtrflow -mdmbuf
cchars: discard = ^O; dsusp = ^Y; eof = ^D; eol = <undef>;
eol2 = <undef>; erase = ^?; erase2 = ^H; intr = ^C; kill = ^U;
lnext = ^V; min = 1; quit = ^\; reprint = ^R; start = ^Q;
status = ^T; stop = ^S; susp = ^Z; time = 0; werase = ^W;
-------------end------------------------
After killing vim and running 'reset' 'stty -a' reports:
-----------begin------------------------
speed 38400 baud; 42 rows; 189 columns;
lflags: icanon isig iexten echo echoe echok echoke -echonl echoctl
-echoprt -altwerase -noflsh -tostop -flusho pendin -nokerninfo
-extproc
iflags: -istrip icrnl -inlcr -igncr ixon -ixoff -ixany imaxbel -ignbrk
brkint -inpck ignpar -parmrk
oflags: opost onlcr -ocrnl oxtabs -onocr -onlret
cflags: cread cs8 -parenb -parodd hupcl -clocal -cstopb -crtscts -dsrflow
-dtrflow -mdmbuf
cchars: discard = ^O; dsusp = ^@; eof = ^D; eol = <undef>;
eol2 = <undef>; erase = ^H; erase2 = ^H; intr = ^C; kill = ^U;
lnext = ^V; min = 1; quit = ^\; reprint = ^R; start = ^Q;
status = ^T; stop = ^S; susp = ^Z; time = 0; werase = ^W;
-------------end------------------------
because 'erase = ^H' particularly backspace key is disrupted.
>How-To-Repeat:
see full description
>Fix:
N/A
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-bugs
mailing list