delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/08/21/01:19:20

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: <3F445639.3030401@ianbrandt.com>
Date: Thu, 21 Aug 2003 01:18:49 -0400
From: Ian Brandt <ian AT ianbrandt DOT com>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4) Gecko/20030624
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: Map Backspace to ASCII DEL?
References: <3F444AC6 DOT 7090900 AT ianbrandt DOT com> <20030821050154 DOT GK11470 AT emcb DOT co DOT uk>
In-Reply-To: <20030821050154.GK11470@emcb.co.uk>

Hi,

Thanks for the reply.  I had tried that, but it seems to have no effect. 
  If I type C-v Backspace I still get ^H...

~$ stty -a | grep erase
intr = ^C; quit = ^\; erase = ^?; kill = ^U; eof = ^D; eol = <undef>;
~$ ^H

I believe that just tells the terminal what to do on the line when it 
receives ^?, but it this case it is not, it's getting ^H.  I need to 
remap the key at a lower level, but hopefully still in Cygwin, not in 
Windows.

~Ian


Elfyn McBratney wrote:

> Ian Brandt <ian AT ianbrandt DOT com> wrote:
> 
>>I've searched through the mailing list and have seen many posts related 
>>to backspace and delete behavior, so my apologies in advance for yet 
>>another one, but I can't seem to find the answer I'm looking for in the 
>>archives.
>>
>>Currently it seems that the cygwin terminal sends ^H (ASCII BS, 0x08) 
>>for backspace, and the VT220 Remove escape sequence (\E[3~, 0x1B5B337E) 
>>for Delete.  I'd like it to send ^? (ASCII DEL, 0x7F) so that ^H can be 
>>used by applications (e.g. emacs).  This is how I've always configured 
>>other terminal emulators that I've used, and it has worked well.
>>
>>I believe Cygwin just repeats what it gets from Windows.  Typically for 
>>the console this would changed via keymaps, but I don't see that Cygwin 
>>uses this.  I don't want to change my mapping in Windows as obviously 
>>that would mess up my native environment.  Is there a low level way to 
>>change the keymap for Cygwin?  If not is there a source hack I could 
>>implement (and if so where in the source should I look)?
> 
> 
> `stty erase ^?', IIRC.
> 
> -- Elfyn
> 
> --
> Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
> Problem reports:       http://cygwin.com/problems.html
> Documentation:         http://cygwin.com/docs.html
> FAQ:                   http://cygwin.com/faq/
> 
> 
> 


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.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