When I telnet to my RedHat-6.1 or Mandrake-6.1using certain versions
of vt100 or VT100 telnet, I find that the Delete key acts like the
Backspace key. This does not occur if I telnet from another linux box.
Is there a way to correct this for the vt100, VT100 Telnet session?
Feel free to e-mail me direct.
Thanks,
Charles
Raymond
Charles Wilkins <ch...@pcscs.com> schreef in berichtnieuws
3843914b...@news.supernews.com...
>Hi,
>
>When I telnet to my RedHat-6.1 or Mandrake-6.1using certain versions
>of vt100 or VT100 telnet, I find that the Delete key acts like the
>Backspace key. This does not occur if I telnet from another linux box.
>
>Is there a way to correct this for the vt100, VT100 Telnet session?
>
Linux's handling of backspace and delete is totally broken.
You need to change the keymaps so that the backspace key
actually generates a backspace character and the delete
key generates a delete character. Add "stty erase ^H" to your
.profile. If you want backspace to work correctly during login
you'll need to either hack mingetty or change the kernel so
that the default erase character is ^H.
Norman
> The bash prompt, however, still has the messed up Del key that
> behaves like the backspace key.
>
> Do you know specifically how to correct this?
These problems can crop up on systems other than Linux.
Re configure you telnet app. I had to do this telneting
to a RH box from Windoze 98. The thing is the app's
preferences/config/what-have-you.
Luck.
I have tried three different telnet apps and they all do the same
thing.
--Charles
[snip]
>Hi Norman,
>Thanks for this tip. It has had a positive effect on the Del key in
>vi. The bash prompt, however, still has the messed up Del key that
>behaves like the backspace key.
>
>Do you know specifically how to correct this?
I don't use bash myself. There's a good version of the korn shell
(pdksh) which you could use instead.
Norman
> Thanks for this tip. It has had a positive effect on the Del key in
> vi. The bash prompt, however, still has the messed up Del key that
> behaves like the backspace key.
> Do you know specifically how to correct this?
[zlatko@sphere]:~$ cat ~/.inputrc
"\e[1~": beginning-of-line
"\e[3~": delete-char
"\e[4~": end-of-line
set meta-flag on
set convert-meta off
set output-meta on
Works Fine For Me[tm], YMMV. <http://www.ibbnet.nl/~anne/keyboard.html>
might help as well.
HTH,
Thomas
--
=-------------------------------------------------------------------------=
- Thomas Zajic <thomasDOTzajicATtelewebDOTat> Linux-2.0.38/slrn-0.9.5.7 -
- "It is not easy to cut through a human head with a hacksaw." (M. C.) -
=-------------------------------------------------------------------------=