From owner-freebsd-questions@freebsd.org Tue Dec 29 17:07:55 2015 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 9EB82A5506B for ; Tue, 29 Dec 2015 17:07:55 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx01.qsc.de (mx01.qsc.de [213.148.129.14]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 6940D1B7B for ; Tue, 29 Dec 2015 17:07:55 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from r56.edvax.de (port-92-195-17-9.dynamic.qsc.de [92.195.17.9]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx01.qsc.de (Postfix) with ESMTPS id D95F43CEF2; Tue, 29 Dec 2015 18:07:51 +0100 (CET) Received: from r56.edvax.de (localhost [127.0.0.1]) by r56.edvax.de (8.14.5/8.14.5) with SMTP id tBTH7o6r002024; Tue, 29 Dec 2015 18:07:50 +0100 (CET) (envelope-from freebsd@edvax.de) Date: Tue, 29 Dec 2015 18:07:50 +0100 From: Polytropon To: Sergei G Cc: FreeBSD Questions 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> Reply-To: Polytropon Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Dec 2015 17:07:55 -0000 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, ...