From owner-freebsd-questions@freebsd.org Wed Dec 30 05:10:33 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 3A66FA568A9 for ; Wed, 30 Dec 2015 05:10:33 +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 F1E3E19C1 for ; Wed, 30 Dec 2015 05:10:32 +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 D59783CF36; Wed, 30 Dec 2015 06:10:30 +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 tBU5AT7C002096; Wed, 30 Dec 2015 06:10:29 +0100 (CET) (envelope-from freebsd@edvax.de) Date: Wed, 30 Dec 2015 06:10:29 +0100 From: Polytropon To: Sergei G Cc: FreeBSD Questions Subject: Re: delete button in console Message-Id: <20151230061029.ff1eb4dd.freebsd@edvax.de> In-Reply-To: References: <56825701.30908@gmail.com> <20151229180750.187ed7c9.freebsd@edvax.de> <5682F182.7080603@hiwaay.net> <20151229222622.GA18290@becker.bs.l> 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: Wed, 30 Dec 2015 05:10:33 -0000 On Tue, 29 Dec 2015 15:16:50 -0800, Sergei G wrote: > Thanks all > > I have added bindkey "\e[3~" delete-char to my ~/.cshrc file and Delete, > Home and End buttons work now. > > The file content is very close to the default, so I am providing portion of > .cshrc for your reference: > > if ( $?tcsh ) then > # > http://stackoverflow.com/questions/1912328/how-to-map-delete-and-end-keys-on-tcsh-shell > # Delete > bindkey "\e[3~" delete-char > # Home > bindkey "\e[1~" beginning-of-line > # End > bindkey "\e[4~" end-of-line > bindkey "^W" backward-delete-word > bindkey -k up history-search-backward > bindkey -k down history-search-forward > endif Yes, I have almost the same - and for longer than 6 years when the Stack Overflow article originates from, even though the notation of the Esc character is a little different (but valid). :-) Oh, by the way: Let me add a suggestion for ~/.inputrc which might be useful for programs which use the readline mechanism: "\e[A": history-search-backward "\e[B": history-search-forward "\e[C": forward-char "\e[D": backward-char set show-all-if-ambiguous on set completion-ignore-case off See "man 3 readline" for details. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...