Re: backspace in vi is ^? in FC3

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

 



On Tue, Nov 16, 2004 at 08:21:21AM +0100, Herbert Gasiorowski wrote:
> Robert G. (Doc) Savage wrote:
> >After upgrading from FC1 to FC3 I've noticed vi no longer backspaces
> >properly in insert mode. It puts up a ^? character instead. Has anyone
> >else noticed this?
> >
> 
> Me too: but not only in vi, even in xterm!
> 

I've only seen this on machines where I've *upgraded* from an earlier
fedora.  On fresh installs, everything works fine.  Here's my stty -a
output from the upgraded machine:

$ stty -a
speed 38400 baud; rows 24; columns 80; line = 0;
intr = ^C; quit = ^\; erase = ^H; kill = ^U; eof = ^D; eol = <undef>;

and the freshly installed FC3 machine:

$ stty -a
speed 38400 baud; rows 24; columns 80; line = 0;
intr = ^C; quit = ^\; erase = ^?; kill = ^U; eof = ^D; eol = <undef>;

The reason appears to be a change in /etc/bashrc:

$ diff /etc/bashrc /etc/bashrc.rpmnew
21,29d15
<     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

dunno the details of this, but when I mended my bashrc, I now get on
my upgraded machine:

$ stty -a
speed 38400 baud; rows 24; columns 80; line = 0;
intr = ^C; quit = ^\; erase = ^?; kill = ^U; eof = ^D; eol = <undef>;

HTH,
Tim Fenn

-- 
Morals?  I eat communism and $h!t America, brother.  --Seanbaby


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux