[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: translating numpad keys in linux terminal
From: |
Tim Johnson |
Subject: |
Re: translating numpad keys in linux terminal |
Date: |
Thu, 2 Apr 2015 18:56:58 -0800 |
User-agent: |
Mutt/1.4.2.3i |
* Emanuel Berg <embe8573@student.uu.se> [150402 17:49]:
> Dan Espen <despen@verizon.net> writes:
>
> >> Perhaps someone in this list that is familiar with
> >> just exactly what the '-nw' option does can
> >> enlighten us?
> >
> > From the docs:
> >
> > Don't communicate directly with the window system,
> > disregarding the DISPLAY environment variable even
> > if it is set. This means that Emacs uses the
> > terminal from which it was launched for all its
> > display and input.
> >
> > The terminal gets and sends X Events.
> >
> > Emacs gets and sends _characters_ to and from
> > the terminal.
> >
> > Sometimes Emacs may get signals from the terminal,
> > like when the terminal is resized.
> >
> > Emacs in a terminal does not see X Events.
> >
> > So, your issue is what does the terminal send to Emacs
> > when you hit a KP key,
> >
> > Terminals like rxvt and xterm give you
> > complete control.
> >
> > gnome-terminal, sorry, I don't use it.
>
> Case closed.
Indeed.
My workstation is a Mac Mini. To recap, I get unique translations
of numeric keypad input to 'emacs' running from iTerm2.
I didn't get the same uniqueness when I booted the same machine
into ubuntu 14.04 and ran 'emacs -nw' from gnome-terminal.
The terminal emulator controls what emacs gets when it is in
terminal - this from the good people who responded to my
inquiries.
As has been pointed out, rxvt _does_ translate numeric keypad
uniquely (unlink gnome-terminal). By starting rxvt in my setup and
then invoking emacs -nw and then running <help>-c, I can see that
M-O sequences are being generated (that is Alt-Shift-(the capital
letter "O")).
If I so choose then I could build unique definitions of keypad
input by runing emacs in terminal mode from rxvt (or presumable
xterm).
X11 emacs in ubuntu is preferable to AquaMacs on OS X, (for me
anyway) and I can just use it.
Thanks for all the input. Great thread.
cheers
--
Tim
tim at tee jay forty nine dot com or akwebsoft dot com
http://www.akwebsoft.com, http://www.tj49.com
- Re: translating numpad keys in linux terminal, (continued)
- Re: translating numpad keys in linux terminal, Dan Espen, 2015/04/01
- Re: translating numpad keys in linux terminal, Simon Clubley, 2015/04/02
- Re: translating numpad keys in linux terminal, Emanuel Berg, 2015/04/02
- Re: translating numpad keys in linux terminal, Richard Wordingham, 2015/04/02
- Message not available
- Re: translating numpad keys in linux terminal, Emanuel Berg, 2015/04/02
- Re: translating numpad keys in linux terminal, Emanuel Berg, 2015/04/02
- Re: translating numpad keys in linux terminal, Dan Espen, 2015/04/02
- Re: translating numpad keys in linux terminal, Emanuel Berg, 2015/04/02
- Re: translating numpad keys in linux terminal,
Tim Johnson <=
- Message not available
- Re: translating numpad keys in linux terminal, Dan Espen, 2015/04/02
- Re: translating numpad keys in linux terminal, Simon Clubley, 2015/04/03
- Re: translating numpad keys in linux terminal, Emanuel Berg, 2015/04/05