RE: Backspace key not working in editor



Can you try if this helps?

Do stty erase "^?" at your prompt.

That was stty erase within the quotes caret sign above number 6 followed
by question mark sign terminated by quotes again.

Now try to vi a file and see if this resolves the issue.

Thx,

PG
________________________________

Pankaj Govil


-----Original Message-----
From: redhat-list-bounces@xxxxxxxxxx
[mailto:redhat-list-bounces@xxxxxxxxxx] On Behalf Of Vidiot
Sent: Sunday, December 31, 2006 4:23 AM
To: RedHat main mail list
Subject: Backspace key not working in editor

Fedora Core 6
Shell being run: zsh

OK, here is the thing that I can't seem to find... as myself, when I log
in, I'm set up to use zsh. When I edit files with vi, pressing the
backspace key yields the expected results, i.e., the character to the
left of the cursor is deleted.

But, when I "su - zroot" (zroot is the zshell root) it does not work.
Obviously I am not going through the complete login process, so what do
I have to set to get vi to work correctly with the backspace key?

It is extremely frustrating to not have the OS do backspacing correctly.
I'm sure I fixed this with FC2, but the upgrade to FC6 wiped out what I
did and I do not remember what I did, as it was ages ago.

FYI, it is also wrong if I su to root, which defaults to bash.

MB
--
e-mail: vidiot@xxxxxxxxxx /~\ The ASCII
\ / Ribbon
Campaign
[So it's true, scythe matters. Willow 5/12/03] X Against
Visit - URL: http://vidiot.com/ / \ HTML Email

--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list



Relevant Pages

  • RE: Backspace key in terminals
    ... That's if I hit a CTRL-V before the backspace key. ... > stty erase ... If the command won't take the backspace character, ... unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe ...
    (RedHat)
  • Re: Backspace key not working in RCS
    ... For some reason my backspace key doesn't work when I'm checking a ... file into RCS? ... stty erase <backspacekey> ... Put that into your .login file ...
    (comp.unix.shell)
  • Re: Trying to edit .profile and use nano without super user privileges
    ... backspace key to actually be the backspace key (stty erase ) which shows up as ^?. ... I'm wanting to insert this into .profile so I can have that handy ability all the time without having to type stty each time I log on. ... Dont forget to go back to the Session page and then Save the configuration! ...
    (comp.unix.aix)
  • Re: Backspace key not working in editor
    ... That was stty erase within the quotes caret sign above number 6 followed ... by question mark sign terminated by quotes again. ... while the zroot login did end up running ...
    (RedHat)
  • Re: BACKSPACE in vi
    ... the ^H is actually pressing the backspace key. ... That fixes my terminal up the ...
    (comp.unix.questions)