From: Stefan Monnier <monnier@iro.umontreal.ca>
Subject: Re: can't global-set-key in emacs -nw
Date: Mon, 02 Feb 2004 00:44:07 GMT [thread overview]
Message-ID: <jwvwu7648no.fsf-monnier+gnu.emacs.help@asado.iro.umontreal.ca> (raw)
In-Reply-To: f1ff9348.0402011457.deaf4ea@posting.google.com
>> Once your terminal emulator is properly configured you need to tell Emacs
>> what that seuqnce is by appropriate (define-key function-key-map ...) calls.
>> See lisp/term/xterm.el for some default settings used if your terminal
>> is xterm. The same terminal emulator may send different sequences
>> depending on the configuration, so there's no standard sadly.
> Assuming the user has not changed any escape sequences via resources
> settings, is this still really the case?
Well, yes, it seems.
> On my (Debian x86) system, xterm and gnome-terminal (which gives $TERM
> as "xterm") seem to agree on a quasi-standard set of escape sequences
> for function-keys modified by shift, control, alt, shift-control and
> shift-alt, all of which are distinct.
Xterm on Redhat did not send the same sequences as xterm from XFree86, last
time I checked (which was a whilie back admittedly).
> But in term/xterm.el, only the unmodified function-key escapes are
> translated. Is there a good reason for this absence? Are the escape
> sequences for modified function-keys in fact different in xterm from
> system to system? Is it really true that life is messier than it seems on
> my system?
Since adding sequences to lisp/term/xterm.el is mostly harmless even if the
sequences are not used (as long as there's no conflict), the CVS version of
the file has more entries because I've added the sequences I've come across.
You may want to check that version of the file (from
savannah.gnu.org/projects/emacs, for example) and tell me if you know of
other sequences so I can add them.
> I am aware that the escape sequences for rxvt and rxvt-derived
> terminal emulators are completely different, but again term/rxvt.el
> translates some of these -- including control-modified function keys
> -- but not all, such as shift-control modified function-keys. Again,
> is there a good reason for this omission?
I wouldn't know. I never use rxvt.
Stefan
next prev parent reply other threads:[~2004-02-02 0:44 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-02-01 0:27 can't global-set-key in emacs -nw Joel Smith
2004-02-01 6:33 ` Eli Zaretskii
2004-02-01 16:56 ` Stefan Monnier
2004-02-01 22:57 ` Peter Heslin
2004-02-02 0:44 ` Stefan Monnier [this message]
2004-02-02 21:04 ` Peter Heslin
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=jwvwu7648no.fsf-monnier+gnu.emacs.help@asado.iro.umontreal.ca \
--to=monnier@iro.umontreal.ca \
/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).