Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 29 Dec 2015 13:53:35 +0100
From:      Bertram Scharpf <lists@bertram-scharpf.de>
To:        freebsd-questions@freebsd.org
Subject:   Re: delete button in console
Message-ID:  <20151229125335.GA86730@becker.bs.l>
In-Reply-To: <56825701.30908@gmail.com>
References:  <56825701.30908@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi,

On Tuesday, 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?

Before you post, try to ask something like
<http://www.google.de/search?q=csh+bindkey+delete-char>.

The solution is

  % bindkey "\e[3~" delete-char

An even superior solution is

  % exec zsh -l

You won't regret it.

Bertram


-- 
Bertram Scharpf
Stuttgart, Deutschland/Germany
http://www.bertram-scharpf.de



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