To: debian-user@lists.debian.org Date: Fri, 13 Oct 2006 11:16:18 -0400
> In my script, I always use 'stty sane' to set my tty to a sane stage, after > temporally changing any tty attributes. > > But for recent month or two, my BS key often stop working, only today did I > finally track it down to the 'stty sane' statement: > > $ stty sane > > $ asdsf^H^H^H > > I.e., my BS key is producing ^H instead of erasing previous letter afterward. > > So what should I do? I still like to use 'stty sane' to reset my tty, and I > still want my BS key to be configured as ^H, instead of something else. > > Can I have both?
SANE=$(stty -g) stty "$SANE"
Bill Marcum
-g, --save print all current settings in a stty-readable form