delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/10/23/00:57:35

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Message-Id: <5.1.0.14.2.20021022214820.02bf4008@pop3.cris.com>
X-Sender: rrschulz AT pop3 DOT cris DOT com
Date: Tue, 22 Oct 2002 21:58:39 -0700
To: cygwin AT cygwin DOT com
From: Randall R Schulz <rrschulz AT cris DOT com>
Subject: Re: Help with special bash key bindings ("Ctrl+Left",
"Ctrl+Right", etc.)
In-Reply-To: <000001c27a4c$2d6fccc0$63ac9044@mzghome>
Mime-Version: 1.0

Milan,

Most everything you need to know is in the READLINE section of the BASH 
manual "page" ("man bash" or "pinfo bash"). The only interesting oversight 
that I'm aware of is the "paste-from-clipboard" action which will, as the 
name suggests, past the first line of the clipboard (up to but not 
including the first newline) into the current input line.

Key bindings for the arrow keys don't carry information about the control 
key, but they are modified by the ALT key. You might want to experiment 
with the "od" command to see what sequences are produced by different keys 
(Fn, arrow keys, the insert, home... cluster).

Note, too, that different sequences result for _some_ of the keys in 
console vs. RXVT windows (given that fact, I'd avoid assuming that xterm 
matches either of them exactly, though it might--I don't know).

Good luck.

Randall Schulz
Mountain View, CA USA


At 21:25 2002-10-22, Milan Gardian wrote:
>Hi,
>
>could anybody please help me with setup of my bash (readline) .inputrc
>file - I'd like to bind the following keys to the following actions
>(usual Windows editor associations):
>
>?: kill-word      # Ctrl-Del
>?: backward-word  # Ctrl-Left (left is "\e[D")
>?: forward-word   # Ctrl-Right (left is "\e[C")
>
>Thanks for any suggestions!
>
>Cheers,
>
>Milan


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019