From: Olive <olive@noemail.org>
Subject: Re: Certain keys don't work in emacs in a terminal
Date: Fri, 10 Nov 2006 23:52:51 +0100 [thread overview]
Message-ID: <45550244$0$7617$bf4948fe@news.tele2.nl> (raw)
In-Reply-To: <mailman.84.1162509359.2155.help-gnu-emacs@gnu.org>
Jorge Peixoto de Morais Neto wrote:
> When I use emacs under xterm, pressing <menu> generates a message that
> "<print> is undefined"; pressing "C-1" inserts the number 1 as if I had
> pressed just "1".
> Under a virtual console, the behavior is also wrong, but different.
>
> How can I make emacs work under xterm or under a virtual console as if
> it was under X?
>
> Thank you.
>
> PS: I am sorry for sending this message again... but there is more than
> a month and no answer. i won't send any more times.
> --
> Software is like sex: it is better when it is free.
You have to configure your term. For xterm, it work properly if you use
the following Xresources
XTerm.ttyModes: erase ^?
XTerm.vt100.backarrowKey: false
XTerm.vt100.eightBitInput: false
For the menu key under Xterm, there is a bug in xterm.el (this file load
specific keys for xterm); change the last line from
(define-key function-key-map "\e[29~" [print])
to
(define-key function-key-map "\e[29~" [home])
This key does not work under the console and in my case the console does
not recognise it; but you can use Alt-x as normal.
Some distributions put resource remappings some functions keys in Xterm;
ensure to erase such customization (I assume you know how to deal with
Xresources, repost if you have problems).
If you want to type non ASCII-characters in your emacs under Xterm, you
will have to tell emacs which coding system the terminal use; I have in
my .emacs:
(set-terminal-coding-system 'latin-1)
(set-keyboard-coding-system 'latin-1)
You can even use the mouse wheel under the xterm:
(mouse-wheel-mode 1)
Olive
prev parent reply other threads:[~2006-11-10 22:52 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-09-21 7:59 Certain keys don't work in emacs in a terminal Jorge Peixoto de Morais Neto
2006-11-02 23:15 ` Jorge Peixoto de Morais Neto
[not found] ` <mailman.84.1162509359.2155.help-gnu-emacs@gnu.org>
2006-11-03 0:38 ` Giorgos Keramidas
2006-11-10 22:52 ` Olive [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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='45550244$0$7617$bf4948fe@news.tele2.nl' \
--to=olive@noemail.org \
/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.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.