[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: stty erase & ssh & vi
From: |
Michael Schroeder |
Subject: |
Re: stty erase & ssh & vi |
Date: |
Mon, 5 Jul 2004 17:54:26 +0200 |
User-agent: |
Mutt/1.4.2.1i |
> This tells it to read RedHat's /etc/bashrc, which is what is really
> causing the problem. In there you'll find the following code:
>
> if [ -x /usr/bin/tput ]; then
> if [ "x`tput kbs`" != "x" ]; then # We can't do this with "dumb" terminal
> stty erase `tput kbs`
> elif [ -x /usr/bin/wc ]; then
> if [ "`tput kbs|wc -c `" -gt 0 ]; then # We can't do this with "dumb"
> terminal
> stty erase `tput kbs`
> fi
> fi
> fi
Whoa! This is truly broken. You'll get an error on terminals
where kbs is longer than one character, e.g. 'dg460-ansi'.
And they shouldn't do this in /etc/bashrc, but in /etc/profile.
Is this code still present in current Fedora versions? If yes
somebody should tell RedHat to (re)move it.
Cheers,
Michael.
--
Michael Schroeder address@hidden
main(_){while(_=~getchar())putchar(~_-1/(~(_|32)/13*2-11)*13);}