Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 25 Jan 2003 14:19:00 -0600
From:      Anti <fearow@attbi.com>
To:        freebsd-questions@FreeBSD.ORG
Subject:   Re: delete key in ssh console
Message-ID:  <20030125141900.0521e17d.fearow@attbi.com>
In-Reply-To: <200301251047.03951.casey@nixfusion.com>
References:  <200301251047.03951.casey@nixfusion.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, 25 Jan 2003 10:47:03 -0800
Casey Scott <casey@nixfusion.com> wrote:

> 
> 	Does anyone know how to get the delete to work properly in a ssh console? I 
> realize that the fact I am using ssh doesn't matter, but since that is how I 
> am connected, that's how I will refer to it. ;-) I am using Konsole (KDE 
> xterm) to ssh to my fbsd server. I have been through all the docs I can find, 
> but none related to remote connections (i.e. pseudo ttys). Where do I define 
> the type of keyboard mapping to using for remote connections? Currenty, I 
> have konsole set to use vt420 which causes the delete key to behave like the 
> backspace key. Most of the others produce a "~" (tilde) when delete is 
> pressed. I would really like to be able to use the delete via remote 
> connections!




set konsole to use "xterm" and create an .inputrc file in your home directory on
the remote machine containing:

"\e[1~": beginning-of-line
"\e[4~": end-of-line
"\e[3~": delete-char
"\e[H":beginning-of-line
"\e[F":end-of-line
"\e[7~":beginning-of-line
"\e[8~":end-of-line
"\x7F": backward-delete-char

if the remote machine is running freebsd 4.x, you should overwrite its
/usr/share/misc/termcap file with one from a freebsd 5 installation and run
"cap_mkdb /usr/share/misc/termcap"




To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030125141900.0521e17d.fearow>