Re: 'stty sane' in insane
On Thu, Oct 12, 2006 at 04:39:20PM -0400, T wrote:
> Hi
>
> 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"
--
I love ROCK 'N ROLL! I memorized the all WORDS to "WIPE-OUT" in
1965!!
Reply to: