delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/08/18/04:50:55

X-Spam-Check-By: sourceware.org
Date: Sat, 18 Aug 2007 10:50:27 +0200
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: RXVT doesn't recognize ALT + Cursor keys
Message-ID: <20070818085027.GA11939@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Mime-Version: 1.0
User-Agent: Mutt/1.4.2.2i
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/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

Hi,

this time I need help.

I'm used to using xterm for all my terminal needs usually.  Yesterday I
tested a scenario which would call for using rxvt in non-X11 mode.  All
is fine, except that I'm unable to use my keyboard layout as I'm used to
it.

I'm working under tcsh in emacs edit mode and what I have in my .cshrc
file, which works nicely for xterms and rxvt under Linux, as well as for
native Windows consoles is this:

bindkey '^[^[[D'        backward-word
bindkey '^[^[[C'        forward-word
bindkey '^[[3D'         backward-word
bindkey '^[[3C'         forward-word
bindkey '^[[1;3D'       backward-word
bindkey '^[[1;3C'       forward-word
 
This covers all combinations of ALT - Crsr Left and ALT - Crsr Right
which I have to work with.  So, in all terminals I can use the Alt +
cursor keys to move wordwise in the command line.

It just doesn't work for a Cygwin rxvt window.  For some reason it does
neither recognize Alt + Cursor, nor Ctrl + Cursor keys for me.

I tested with od -c.  I pressed <Cursor Left><Enter><Alt+Cursor Left>
<Return><Ctrl+Cursor Left><Return><Ctrl-D>.

The native Windows console returns

  $ od -c
  0000000 033   [   D  \n 033 033   [   D  \n 033   [   d  \n
  0000015

which translates to

  <Cursor Left>      = ESC [ D
  <Alt+Cursor Left>  = ESC ESC [ D
  <Ctrl+Cursor Left> = ESC [ d

Rxvt on Linux returns

  $ od -c
  0000000 033   [   D  \n 033 033   [   D  \n 033   O   d  \n
  0000015

which translates to

  <Cursor Left>      = ESC [ D
  <Alt+Cursor Left>  = ESC ESC [ D
  <Ctrl+Cursor Left> = ESC 0 d

The same on Cygwin rxvt

  $ od -c
  0000000 033   [   D  \n  \n 033   O   d  \n
  0000011

which translates to

  <Cursor Left>      = ESC [ D
  <Alt+Cursor Left>  = NIL
  <Ctrl+Cursor Left> = ESC 0 d

Is there anything I can do about that, or is this a bug in rxvt, maybe?
I tried with -/+meta8 as well as with trying different -mod options, but
to no avail.


Thanks for any help,
Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

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