[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: S-up and emacs -nw?

From: Ehud Karni
Subject: Re: S-up and emacs -nw?
Date: Mon, 14 Oct 2002 17:08:03 +0200

On 14 Oct 2002 09:45:19 -0400, Joe Casadonte <> 
> My apologies.  I'm not at the box, but I tried this with the Debian
> console (not sure the default terminal type) and with a cygwin
> terminal window.  X is not an option for me; console only.
> My cygwin termcap entry reads:
> cygwin:\
>       :xn@:op=\E[39;49m:Km=\E[M:te=\E[2J\E[?47l\E8:ti=\E7\E[?47h:tc=linux:
> Which unfortunately means next to nothing to me.  Thanks!

Bellow is a fuller cygwin termcap entry. You can also use rxvt (which
is an xterm emulation), it is included with the Cygwin net installer.

I think that the terminal type for the Debian console is `linux' (it
is for the RedHat distribution).  

Of these 3 terminal only `rxvt' generate different keys for the shifted
key (up is \e[A and S-up is \e[a). The termcap entry has the definition
of the up key only. The emacs distributed xterm.el has only the `up' 
key definition but you can define the shifted up like this:
    (define-key function-key-map "\e[a" [S-up])


Ernie Boyd (old, but working) cygwin termcap entry:

# Use this for cygwin (tested with version 1.1.0).
# I've combined pcansi and linux.  Some values of course were different and
# I've indicated which of these were and which I used.
# Cheers,
# several changes based on running with tack and comparing with older entry -TD
# (untranslatable capabilities removed to fit entry within 1023 bytes)
# (sgr removed to fit entry within 1023 bytes)
# (acsc removed to fit entry within 1023 bytes)
cygwin|ansi emulation for Cygwin:\

 Ehud Karni           Tel: +972-3-7966-561  /"\
 Mivtach - Simon      Fax: +972-3-7966-667  \ /  ASCII Ribbon Campaign
 Insurance agencies   (USA) voice mail and   X   Against   HTML   Mail  FAX:  1-815-5509341  / \                  Better  Safe  Than  Sorry

reply via email to

[Prev in Thread] Current Thread [Next in Thread]