Date: Tue, 29 Dec 2015 18:07:50 +0100 From: Polytropon <freebsd@edvax.de> To: Sergei G <sergeig.public@gmail.com> Cc: FreeBSD Questions <freebsd-questions@freebsd.org> Subject: Re: delete button in console Message-ID: <20151229180750.187ed7c9.freebsd@edvax.de> In-Reply-To: <56825701.30908@gmail.com> References: <56825701.30908@gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 29 Dec 2015 01:48:49 -0800, Sergei G wrote: > When I ssh to a FreeBSD machine and press 'Delete' button in csh prompt > I get character '~' printed on screen. Backspace works just fine. > > I think even an actual console behaves the same way. > > Is there a way to "map" the Delete button to work appropriately? Would > it be my SSH client application or FreeBSD itself? This is a thing that can be configured for the shell. I assume you're using FreeBSD's default dialog shell, the C shell. In this case, add to ~/.cshrc: bindkey ^? delete-char # for console bindkey ^[[3~ delete-char # for xterm Or to /etc/csh.cshrc, if you want to make it a global setting. You can check the success with the "stty -a" command. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20151229180750.187ed7c9.freebsd>