public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Randall R Schulz <rrschulz@cris.com>
To: derbyshire@globalserve.net, cygwin@cygwin.com
Subject: Re: bash and the delete key
Date: Thu, 25 Jul 2002 19:49:00 -0000	[thread overview]
Message-ID: <5.1.0.14.2.20020725151051.01f8f3c0@pop3.cris.com> (raw)
In-Reply-To: <3D403CE3.17956.467EDE3A@localhost>

[-- Attachment #1: Type: text/plain, Size: 816 bytes --]

Paul,

Add this line to your "$HOME/.inputrc" file:

   "\M-[3~":   delete-char


This escape sequence happens to be shared by RXVT and the console.

To see where there are differences between RXVT and console, you can loot 
at the attached ".inputrc" file, which is the one I use.


Randall Schulz
Mountain View, CA USA


At 15:01 2002-07-25, Paul Derbyshire wrote:
>Cygwin's bash seems not to interpret the delete key correctly. The
>backspace key nukes the character behind the cursor, as expected. The
>del key doesn't nuke the character ahead of the curser however. It
>inserts a tilde instead. I assume this is something related to either
>a bash setting or a terminal setting, but I ran out of clues (read:
>relevant information in obvious places in the bash man page) without
>fixing it a while back.
>
>...

[-- Attachment #2: DOTinputrc --]
[-- Type: application/octet-stream, Size: 836 bytes --]


# set completion-ignore-case on
# set show-all-if-ambiguous on


# Console:
#	F1 - F5
"\M-[[A"	"fg %1\C-M"
"\M-[[B"	"fg %2\C-M"
"\M-[[C"	"fg %3\C-M"
"\M-[[D"	"fg %4\C-M"
"\M-[[E"	"fg %5\C-M"


# RXVT:
#	F1 - F4
"\M-[11~"	"fg %1\C-M"
"\M-[12~"	"fg %2\C-M"
"\M-[13~"	"fg %3\C-M"
"\M-[14~"	"fg %4\C-M"
"\M-[15~"	"fg %5\C-M"


# Both Console and RXVT:
#	F6 - F12
"\M-[17~"	"fg %6\C-M"
"\M-[18~"	"fg %7\C-M"
"\M-[19~"	"fg %8\C-M"
"\M-[20~"	"fg %9\C-M"
"\M-[21~"	"fg %10\C-M"
"\M-[23~"	"fg %11\C-M"
"\M-[24~"	"fg %-\C-M"


# Console:
	"\M-[1~":	beginning-of-line		# Home
	"\M-[4~":	end-of-line				# End


# RXVT:
	"\M-[7~":	beginning-of-line		# Home
	"\M-[8~":	end-of-line				# End


# Both Console and RXVT:
	"\M-[2~":	paste-from-clipboard	# Insert
#	"\M-[5~"							# Page-Up
	"\M-[3~":	delete-char				# Delete
#	"\M-[6~"							# Page-Down

[-- Attachment #3: Type: text/plain, Size: 214 bytes --]

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

  reply	other threads:[~2002-07-25 22:12 UTC|newest]

Thread overview: 45+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-07-25 19:00 Paul Derbyshire
2002-07-25 19:49 ` Randall R Schulz [this message]
2002-07-25 22:30   ` Sylvain Petreolle
2002-07-26  2:51     ` Paul Derbyshire
     [not found]       ` <Mahogany-0.64.2-2620-20020725-204157.00@MCHASE-COMPAQ>
2002-07-26  4:17         ` Michael A Chase
2002-07-26  4:37     ` Gary R. Van Sickle
2002-07-25 20:13 ` Christopher Faylor
2002-07-26  2:21   ` Paul Derbyshire
2002-07-26  3:15     ` Christopher Faylor
2002-07-25 19:49 Tony Fenleish
2002-07-26  1:30 ` Dylan Cuthbert
2002-07-26  7:29 ` Gerrit P. Haase
2002-07-26 10:08 Tony Fenleish
2002-07-26 10:36 ` Randall R Schulz
2002-07-27  0:19   ` Gary R. Van Sickle
     [not found]   ` <NCBBIHCHBLCMLBLOBONKIEMJDCAA.g.r.vansickle@worldnet.att.ne t>
2002-07-27  1:06     ` Randall R Schulz
2002-07-27  1:21       ` Gary R. Van Sickle
2002-07-30 19:59       ` Samuel
2002-07-26 13:40 ` Igor Pechtchanski
2002-07-28 10:06 ` John Morrison
2002-07-27  3:16 Randall R Schulz
2002-07-27 13:03 ` Nicholas Wourms
2002-07-27 15:54   ` Randall R Schulz
2002-07-28 20:47 ` Andrew DeFaria
2002-07-28 20:56   ` Randall R Schulz
2002-07-28 21:18     ` Christopher Faylor
2002-07-29 10:55       ` Nicholas Wourms
2002-07-29  0:00     ` Gary R. Van Sickle
2002-07-29  0:08       ` Christopher Faylor
2002-07-29  1:21         ` Gary R. Van Sickle
2002-07-28 23:52   ` Gary R. Van Sickle
2002-07-28 16:37 Joshua Daniel Franklin
2002-07-28 16:55 ` John Morrison
     [not found] <20020728170355.GA11806@butch.jgcomp.com>
2002-07-28 17:57 ` Joshua Daniel Franklin
2002-07-30 20:55 Stephan Mueller
2002-07-31  3:31 ` Michael Hoffman
2002-07-31  9:48 ` Samuel
2002-07-31 11:07 Barry Buchbinder
2002-07-31 11:36 ` Samuel
2002-07-31 13:26 Stephan Mueller
2002-08-01 12:07 ` Samuel
2002-07-31 13:33 Jelks Cabaniss
2002-07-31 14:15 ` Paul Derbyshire
2002-07-31 14:27 Barry Buchbinder
2002-11-05  8:16 Steve Chapel

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5.1.0.14.2.20020725151051.01f8f3c0@pop3.cris.com \
    --to=rrschulz@cris.com \
    --cc=cygwin@cygwin.com \
    --cc=derbyshire@globalserve.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).