From owner-freebsd-questions@freebsd.org Thu Dec 31 19:34:54 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 A3107A571E7 for ; Thu, 31 Dec 2015 19:34:54 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx02.qsc.de (mx02.qsc.de [213.148.130.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 6AF9A1A01 for ; Thu, 31 Dec 2015 19:34:54 +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 mx02.qsc.de (Postfix) with ESMTPS id 4ABB727828; Thu, 31 Dec 2015 20:27:54 +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 tBVJRsw6002019; Thu, 31 Dec 2015 20:27:54 +0100 (CET) (envelope-from freebsd@edvax.de) Date: Thu, 31 Dec 2015 20:27:54 +0100 From: Polytropon To: mfv@bway.net Cc: FreeBSD Questions Subject: Re: delete button in console Message-Id: <20151231202754.e6cbe107.freebsd@edvax.de> In-Reply-To: <20151231141153.62eb3d0d@gecko4> References: <56825701.30908@gmail.com> <20151229180750.187ed7c9.freebsd@edvax.de> <5682F182.7080603@hiwaay.net> <20151229222622.GA18290@becker.bs.l> <20151230061029.ff1eb4dd.freebsd@edvax.de> <20151231141153.62eb3d0d@gecko4> 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: Thu, 31 Dec 2015 19:34:54 -0000 On Thu, 31 Dec 2015 14:11:53 -0500, mfv wrote: > Hello, > > I have similar keybindings that operate as expected for both the > tty console and virtual console using xterm or urxvt. > > However, the following keybindings (Ctrl+right_key_pad_arrow and > Crtrl+left_key_pad_arrow) do not work on the tty console: > > bindkey "\e[1;5C" forward-word > bindkey "\e[1;5D" backward-word > > Even though the environment variable for the terminal is identical: > > # printenv | grep TERM > TERM=xterm Or simply use "echo $TERM". :-) It even doesn't work with the traditional (sc-based) console where TERM=cons25l1 (or cons25 for US preference). Check the follwing in an X terminal: % cat ^[[1;5D^[[1;5C <- Ctrl + cursor keye ^[[D^[[C <- cursor keys As expected, it works. And as you can see, it's the same code sequence you have assigned (Escape [ 1 ; 5 C and D). But when you do the same in text mode, both cases will (incorrectly) be the same: % cat ^[[D^[[C <- Ctrl + cursor keys ^[[D^[[C <- cursor keys So the Control key combination isn't recognized properly. > Csh is my preferred shell for both console and virutal terminal. So I'm not the last person actually using it... ;-) > Any suggestions for a key binding that works on the tty console similar > to the virtual terminal would be appreciated. Alternatively, an > explanation of why it will not work will also be appreciated. Sorry, no idea _why_ this is, but only _that_ it is. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...