From: Kai Grossjohann <kai@emptydomain.de>
Subject: Re: Slightly OT: Where are keycodes defined for emacs -nw in X-Windows?
Date: Wed, 03 Dec 2003 22:20:35 +0000 [thread overview]
Message-ID: <87k75do85o.fsf@emptyhost.emptydomain.de> (raw)
In-Reply-To: p27gnb.r5.ln@acm.acm
Alan Mackenzie<none@example.invalid> writes:
> On my xterm, the modifier keys get filtered out, so that C-up and up
> degenerate into the same event sequence. :-(
You can tell xterm to send any string to the app inside when you hit
C-up. Something like this:
XTerm.VT100.Translations: #override \
<Key>Delete: string(0x1B) string("[3~") \n\
Ctrl <Key>Up: string(0x1B) string("abcde")
The above goes in ~/.Xdefaults or ~/.Xresources. It tells xterm to
send ESC [ 3 ~ to the app when you press delete and, well, the rest
should be obvious.
Does it work?
Kai
prev parent reply other threads:[~2003-12-03 22:20 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-10-24 19:03 Slightly OT: Where are keycodes defined for emacs -nw in X-Windows? Alan Mackenzie
2003-10-24 19:25 ` Barry Margolin
2003-10-24 20:15 ` Stefan Monnier
2003-10-24 20:19 ` Stefan Monnier
2003-10-26 10:19 ` Alan Mackenzie
2003-10-26 16:15 ` Thomas Dickey
2003-10-28 10:16 ` Alan Mackenzie
2003-10-28 13:17 ` Thomas Dickey
2003-10-28 15:21 ` Barry Margolin
2003-10-27 9:50 ` Gian Uberto Lauri
[not found] ` <mailman.2518.1067256787.21628.help-gnu-emacs@gnu.org>
2003-10-27 15:56 ` Stefan Monnier
2003-12-03 22:20 ` Kai Grossjohann [this message]
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87k75do85o.fsf@emptyhost.emptydomain.de \
--to=kai@emptydomain.de \
/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).