[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Sid: stty configurations changing -- backspace/del



It's that old backspace / delete problem. 

I've seen this pop up on list a few times recently, started seeing it
myself on a box I'd set up recently, now it's appearing on my main
desktop -- but inconsistantly among two shell sessions.  One of these is
older (247,192 seconds, vs. 186 seconds, taken from $SECONDS shell
variable).  I'm not aware of any configuration changes I might have made
which would cause this to occur.

There are significant differences in the stty configurations.

In the older configuration, I'm seeing the following output to stty -a:

------------------------------------------------------------------------
speed 38400 baud; rows 59; columns 80; line = 0;
intr = ^C; quit = ^\; erase = ^?; kill = ^U; eof = ^D; eol = <undef>;
eol2 = <undef>; start = ^Q; stop = ^S; susp = ^Z; rprnt = ^R; werase = ^W;
lnext = <undef>; flush = ^O; min = 1; time = 0;
-parenb -parodd cs8 -hupcl -cstopb cread -clocal -crtscts
-ignbrk brkint ignpar -parmrk -inpck -istrip -inlcr -igncr icrnl ixon -ixoff
-iuclc -ixany imaxbel
opost -olcuc -ocrnl onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab0 bs0 vt0 ff0
isig icanon iexten echo echoe echok -echonl -noflsh -xcase -tostop -echoprt
echoctl echoke
------------------------------------------------------------------------

The newer configuration:
------------------------------------------------------------------------
speed 38400 baud; rows 59; columns 80; line = 0;
intr = <undef>; quit = <undef>; erase = <undef>; kill = <undef>; eof = ^D;
eol = <undef>; eol2 = <undef>; start = ^Q; stop = ^S; susp = <undef>;
rprnt = <undef>; werase = <undef>; lnext = <undef>; flush = <undef>;
min = 1; time = 0;
-parenb -parodd cs8 -hupcl -cstopb cread -clocal -crtscts
-ignbrk brkint ignpar -parmrk -inpck -istrip -inlcr -igncr icrnl ixon -ixoff
-iuclc -ixany imaxbel
opost -olcuc -ocrnl onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab0 bs0 vt0 ff0
isig icanon iexten echo echoe echok -echonl -noflsh -xcase -tostop -echoprt
echoctl echoke
------------------------------------------------------------------------

Note in particular the <undef> settings for intr, quit, erase, kill,
susp, rprnt werase, and flush.

The real question is:  why are these settings changing?

I can (and have) saved the "correct" settings (the old ones) with the
stty -g command, to a file, say ~/.stty:

2506:5:bf:8a3b:3:1c:7f:15:4:0:1:0:11:13:1a:0:12:f:17:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0

...which works.

The other option is to run 'stty sane', which also appears to set sane
defaults.  Including this in my ~/.bashrc works, but I'm curious as to
why it's necessary at all.  Additing 'stty sane' to /etc/bash.bashrc
seems to be the best systemwide fix.

Any other clarifications I'm missing?

Peace.

-- 
Karsten M. Self <kmself@ix.netcom.com>       http://kmself.home.netcom.com/
 What part of "Gestalt" don't you understand?             Home of the brave
  http://gestalt-system.sourceforge.net/                   Land of the free
   Free Dmitry! Boycott Adobe! Repeal the DMCA! http://www.freesklyarov.org
Geek for Hire                     http://kmself.home.netcom.com/resume.html

Attachment: pgpH0kVmyVvNz.pgp
Description: PGP signature


Reply to: