Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

backspace in vi question

1 view
Skip to first unread message

airyn darling

unread,
Nov 9, 2000, 3:00:00 AM11/9/00
to
hi all -

was wondering if you could help me out with something (again.)

occasionally when in a telnet client such as nifty telnet, tssh, or
putty, i am not able to use the backspace key in vi. backspace on
the command line works just fine, but i get control characters in
vi only.

any ideas?

thanks....hope all is well with everyone.

___________________________________________________________________________
Airyn Darling http://www.umich.edu/~airyn
1993 BMW K1100RS, "Grak" 1973 Honda CB500, "Lucille"

The face of a child can say it all. Especially the mouth part of the face.
___________________________________________________________________________


James W. Jeffries

unread,
Nov 9, 2000, 3:00:00 AM11/9/00
to
Airyn,

In putty, Keyboard tab, make "Action of Backspace" == "Control-?
(ASCII-127)".

At least, that works for me connecting to our Suns.

Jim

--On Thursday, November 09, 2000 7:58 PM -0500 airyn darling
<ai...@umich.edu> wrote:

> hi all -
>
> was wondering if you could help me out with something (again.)
>
> occasionally when in a telnet client such as nifty telnet, tssh, or
> putty, i am not able to use the backspace key in vi. backspace on
> the command line works just fine, but i get control characters in
> vi only.
>
> any ideas?
>
> thanks....hope all is well with everyone.
>
> _________________________________________________________________________

> __ Airyn Darling http://www.umich.edu/~airyn

Dan Pritts

unread,
Nov 9, 2000, 3:00:00 AM11/9/00
to
probably the problem is that you are using a shell such as tcsh that will
accept either backspace (control-h) or delete (control-?) as the erase
key. This is why your shell works. On the other hand your other programs
such as vi don't do the right thing.

No matter what it is set to you should be always able to do this:

stty erase <control-v><hit your backspace key>

control-v tells the tty to accept the next keystroke as a literal,
rather than interpret it with stty settings. Hitting the backspace key
will then send the literal keystring, which will be passed along to
stty, and set your stty erase appropriately.


On Thu, 9 Nov 2000, airyn darling wrote:

> hi all -
>
> was wondering if you could help me out with something (again.)
>
> occasionally when in a telnet client such as nifty telnet, tssh, or
> putty, i am not able to use the backspace key in vi. backspace on
> the command line works just fine, but i get control characters in
> vi only.
>
> any ideas?
>
> thanks....hope all is well with everyone.
>
> ___________________________________________________________________________
> Airyn Darling http://www.umich.edu/~airyn
> 1993 BMW K1100RS, "Grak" 1973 Honda CB500, "Lucille"
>
> The face of a child can say it all. Especially the mouth part of the face.
> ___________________________________________________________________________
>

they say i shot a man named gray
and took his wife to italy dan pritts
she inherited a million bucks 734/996-0169
and when she died it came to me da...@umich.edu
i can't help it if i'm lucky...


airyn darling

unread,
Nov 9, 2000, 3:00:00 AM11/9/00
to
by george, that's it! thank you thank you. this has been driving me
nuts for a month. :-)

thanks for the answer and the explanation - i'd tried a few other
things with stty erase, and obviously none of them worked. aaaaahhhh...
i feel so much better now.

On Thu, 9 Nov 2000, Dan Pritts wrote:

> probably the problem is that you are using a shell such as tcsh that will
> accept either backspace (control-h) or delete (control-?) as the erase
> key. This is why your shell works. On the other hand your other programs
> such as vi don't do the right thing.
>
> No matter what it is set to you should be always able to do this:
>
> stty erase <control-v><hit your backspace key>
>
> control-v tells the tty to accept the next keystroke as a literal,
> rather than interpret it with stty settings. Hitting the backspace key
> will then send the literal keystring, which will be passed along to
> stty, and set your stty erase appropriately.

Dan Pritts

unread,
Nov 9, 2000, 3:00:00 AM11/9/00
to
it will often work to do:

stty erase ^H # for backspace
stty erase '^?' # for delete

the single quotes stop the shell from interpreting ? as a metacharacter.

they say i shot a man named gray

0 new messages