* Loadkeys trickery
@ 2014-11-27 21:58 Dmitry Bogatov
2014-12-01 9:18 ` Nancy
[not found] ` <mailman.15043.1417425517.1147.help-gnu-emacs@gnu.org>
0 siblings, 2 replies; 5+ messages in thread
From: Dmitry Bogatov @ 2014-11-27 21:58 UTC (permalink / raw)
To: help-gnu-emacs
[-- Attachment #1: Type: text/plain, Size: 1460 bytes --]
Hello!
I work in linux terminal. I use fbterm and tmux.
I use loadkeys to get more keychords. Here is example of my config:
keymaps 0-255
alt keycode 1 = 0xFFFF
control keycode 105 = 0xFFFE
control keycode 106 = 0xFFFD
control keycode 103 = 0xFFFC
control keycode 108 = 0xFFFB
ctrll keycode 103 = 0xFFFA
shift keycode 57 = 0xFFF9
keycode 56 = Alt
keycode 100 = AltGr
keycode 125 = ShiftL
keycode 127 = ShiftR
keycode 29 = CtrlL
keycode 97 = CtrlR
keycode 58 = Control
These 0xFFFF are some tibetian symbols, their exact values does not
matter. Under linux console, I can happily press (Shift + Space(=keycode
57)) and get strange symbol, and bind it to some command in emacs. If I
start tmux, and press (Shift + Space), I get same strange symbol into
bash prompt. It is great. But! If I start emacs under tmux and press
Shift+Space, emacs interprets it as F10 and open text menu. I checked,
Vim works as expected (prints tibetian symbol).
Usually I run fbterm and tmux in it. Fbterm breaks nothing, but adds 256
colors.
Interesting enough, if I set TERM=linux under tmux, things works well.
I could set it for emacs, but I am unwilling to give up 256 colors.
Also I tried screen over tmux. Same result.
Maybe someone have idea or encountered such problem? Thank in advance for your
attention.
--
Best regards, Dmitry Bogatov <KAction@gnu.org>,
Free Software supporter, esperantisto and netiquette guardian.
GPG: 54B7F00D
[-- Attachment #2: Type: application/pgp-signature, Size: 836 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Loadkeys trickery
2014-11-27 21:58 Loadkeys trickery Dmitry Bogatov
@ 2014-12-01 9:18 ` Nancy
2014-12-01 12:39 ` Dmitry Bogatov
[not found] ` <mailman.15043.1417425517.1147.help-gnu-emacs@gnu.org>
1 sibling, 1 reply; 5+ messages in thread
From: Nancy @ 2014-12-01 9:18 UTC (permalink / raw)
To: Dmitry Bogatov; +Cc: help-gnu-emacs
Hi,
Sorry, I can not help you, but need your help :)
How you got that key code map correctly? Different term have
different key code bind, how you known the number of each key exactly?
Thanks :)
On Fri, Nov 28, 2014 at 5:58 AM, Dmitry Bogatov <KAction@gnu.org> wrote:
> Hello!
>
> I work in linux terminal. I use fbterm and tmux.
> I use loadkeys to get more keychords. Here is example of my config:
>
> keymaps 0-255
> alt keycode 1 = 0xFFFF
> control keycode 105 = 0xFFFE
> control keycode 106 = 0xFFFD
> control keycode 103 = 0xFFFC
> control keycode 108 = 0xFFFB
> ctrll keycode 103 = 0xFFFA
> shift keycode 57 = 0xFFF9
> keycode 56 = Alt
> keycode 100 = AltGr
> keycode 125 = ShiftL
> keycode 127 = ShiftR
> keycode 29 = CtrlL
> keycode 97 = CtrlR
> keycode 58 = Control
>
> These 0xFFFF are some tibetian symbols, their exact values does not
> matter. Under linux console, I can happily press (Shift + Space(=keycode
> 57)) and get strange symbol, and bind it to some command in emacs. If I
> start tmux, and press (Shift + Space), I get same strange symbol into
> bash prompt. It is great. But! If I start emacs under tmux and press
> Shift+Space, emacs interprets it as F10 and open text menu. I checked,
> Vim works as expected (prints tibetian symbol).
>
> Usually I run fbterm and tmux in it. Fbterm breaks nothing, but adds 256
> colors.
>
> Interesting enough, if I set TERM=linux under tmux, things works well.
> I could set it for emacs, but I am unwilling to give up 256 colors.
>
> Also I tried screen over tmux. Same result.
>
> Maybe someone have idea or encountered such problem? Thank in advance for your
> attention.
>
> --
> Best regards, Dmitry Bogatov <KAction@gnu.org>,
> Free Software supporter, esperantisto and netiquette guardian.
> GPG: 54B7F00D
--
Best Regards,
Yu Rong Tan
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Loadkeys trickery
[not found] ` <mailman.15043.1417425517.1147.help-gnu-emacs@gnu.org>
@ 2014-12-01 9:29 ` Álvar Ibeas
2014-12-01 9:45 ` Nancy
0 siblings, 1 reply; 5+ messages in thread
From: Álvar Ibeas @ 2014-12-01 9:29 UTC (permalink / raw)
To: help-gnu-emacs
> different key code bind, how you known the number of each key exactly?
You can use ‘showkey’ to get the keycodes.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Loadkeys trickery
2014-12-01 9:29 ` Álvar Ibeas
@ 2014-12-01 9:45 ` Nancy
0 siblings, 0 replies; 5+ messages in thread
From: Nancy @ 2014-12-01 9:45 UTC (permalink / raw)
To: Álvar Ibeas; +Cc: help-gnu-emacs
> You can use 'showkey' to get the keycodes.
It works! Thank you sir! *^O^*
--
Best Regards,
Yu Rong Tan
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Loadkeys trickery
2014-12-01 9:18 ` Nancy
@ 2014-12-01 12:39 ` Dmitry Bogatov
0 siblings, 0 replies; 5+ messages in thread
From: Dmitry Bogatov @ 2014-12-01 12:39 UTC (permalink / raw)
To: Nancy; +Cc: help-gnu-emacs
[-- Attachment #1: Type: text/plain, Size: 687 bytes --]
* Nancy <nancydreaming@gmail.com> [2014-12-01 17:18:30+0800]
> Hi,
>
> Sorry, I can not help you, but need your help :)
> How you got that key code map correctly? Different term have
> different key code bind, how you known the number of each key exactly?
>
> Thanks :)
If I understand you correctly, you need showkey(1).
PS. Please, do not overquote.
PPS. I somehow worked around my problem. I do not understand why,
but if I start emacs via dtach(1) and have (server-start) in init file,
it works correctly, but if I use emacs --daemon, it does not.
--
Best regards, Dmitry Bogatov <KAction@gnu.org>,
Free Software supporter, esperantisto and netiquette guardian.
GPG: 54B7F00D
[-- Attachment #2: Type: application/pgp-signature, Size: 836 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2014-12-01 12:39 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-11-27 21:58 Loadkeys trickery Dmitry Bogatov
2014-12-01 9:18 ` Nancy
2014-12-01 12:39 ` Dmitry Bogatov
[not found] ` <mailman.15043.1417425517.1147.help-gnu-emacs@gnu.org>
2014-12-01 9:29 ` Álvar Ibeas
2014-12-01 9:45 ` Nancy
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).