delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/02/15/11:32:37

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
X-Authentication-Warning: slinky.cs.nyu.edu: pechtcha owned process doing -bs
Date: Sat, 15 Feb 2003 11:32:29 -0500 (EST)
From: Igor Pechtchanski <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: Jon LaBadie <jcyg AT jgcomp DOT com>
cc: cygwin AT cygwin DOT com
Subject: Re: The humble <DEL> and other editing keys
In-Reply-To: <20030215144249.GA27699@butch.jgcomp.com>
Message-ID: <Pine.GSO.4.44.0302151131490.7773-100000@slinky.cs.nyu.edu>
Importance: Normal
MIME-Version: 1.0

On Sat, 15 Feb 2003, Jon LaBadie wrote:

> On Fri, Feb 14, 2003 at 11:31:38PM -0800, David Christensen wrote:
> > Elfyn McBratney wrote on 14 Feb 2003 18:18:47 -0000
> > > In bash you can add the following
> > >
> > > # DEL key in bash
> > > "\e[3~": delete-char
> > >
> > > to your ~/.inputrc or your /etc/inputrc file to get a functioning DEL
> > > ke.
> >
> > Thanks!  I've been wondering about that for far too long.  :-)
> >
> > BTW  I read the readline portion of "man bash" and was able to figure
> > out the "~/.inputrc", "\e", ":", "delete-char" parts, but how did you
> > figure out that the <Del> key maps to "[3~"?
>
> For keys that send an escape sequence I often go into a vi style
> editor's append mode, press Ctrl-V to "quote" the next char and
> press the key in question.
>
> If the key is not mapped by the tty input driver, this should also
> work in a posix type shell in vi mode.  And cat -v (or vet) may be
> useful as well.

The Ctrl-V method works perfectly well from the bash command line, too.
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha AT cs DOT nyu DOT edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor AT watson DOT ibm DOT com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Oh, boy, virtual memory! Now I'm gonna make myself a really *big* RAMdisk!
  -- /usr/games/fortune


--
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