From owner-freebsd-questions@freebsd.org Fri Jan 1 20:25:18 2016 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 B6CD7A5D75D for ; Fri, 1 Jan 2016 20:25:18 +0000 (UTC) (envelope-from mfv@bway.net) Received: from smtp2.bway.net (smtp2.v6.bway.net [IPv6:2607:d300:1::28]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 956D31512 for ; Fri, 1 Jan 2016 20:25:18 +0000 (UTC) (envelope-from mfv@bway.net) Received: from gecko4 (host-216-220-115-226.dsl.bway.net [216.220.115.226]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: m1316v@bway.net) by smtp2.bway.net (Postfix) with ESMTPSA id 14D2095885; Fri, 1 Jan 2016 15:25:07 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=bway.net; s=mail; t=1451679907; bh=43b05SVWOQ5GPR+jow9iKH23jtFp0ezG5bXCk1oxYNU=; h=Date:From:To:Cc:Subject:In-Reply-To:References:Reply-To; b=aeYLPs2e1t+NS79jxS4lOjsMRoGXUu5Yr+jvkPrTe9eZCXy80HWeeHPTybjdU2A3J pbc8sMH01tatXA1mjnmITLSb3GqVImSzS0saOB3yYETaSMeTWrFc1x32gmPO4XthS/ S1plfG2aRfvyEX4zOhG+p7FFnzJuE4GIeac9se/Y= Date: Fri, 1 Jan 2016 15:25:06 -0500 From: mfv To: Polytropon Cc: FreeBSD Questions Subject: Re: delete button in console Message-ID: <20160101152506.4c61846d@gecko4> In-Reply-To: <20151231202754.e6cbe107.freebsd@edvax.de> 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> <20151231202754.e6cbe107.freebsd@edvax.de> Reply-To: mfv@bway.net 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: Fri, 01 Jan 2016 20:25:18 -0000 > On Thu, 2015-12-31 at 20:27 Polytropon wrote: > >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. > > > Hello Polytropon, Thanks for the clarification. I've verified you key strokes on my host and the results are identical. I also tried a different console driver, that is vt, and also different terminals from termcap (vt102) and the result is the same. Perhaps the cause is at a lower level. Cheers ... Marek