help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Make Super key work in console


From: Jean Louis
Subject: Re: Make Super key work in console
Date: Sun, 21 Feb 2021 08:42:21 +0300
User-agent: Mutt/2.0 (3d08634) (2020-11-07)

* Emanuel Berg via Users list for the GNU Emacs text editor 
<help-gnu-emacs@gnu.org> [2021-02-21 08:07]:
> Jean Louis wrote:
> 
> >> In my opinion, it’s not a good way. Just piling dirty hacks
> >> to cover the lack of general-purpose key representation.
> >
> > That is not good way is it does not recognize Super key.
> 
> Super-Jean forgets that in this very thread, his key was shown
> to work just as any other key, using this method.

by having file `key':

 keycode 125 = U+1004

and by doing the command:

$ sudo loadkeys key

and by evaluating:

(define-key input-decode-map [?\u1004] [super-key])

(define-prefix-command 'super-jean)

(global-set-key [super-key] 'super-jean)

(global-set-key
 [super-key ?\l]
 (lambda ()
   (interactive)
   (message "Manny's skills are uncanny"))

 (global-set-key [super-key ?\t] 'tetris)
 
I cannot get it to work in the console. I am not speaking of X
terminal emulators.

Do you get it to work in console?

What am I doing wrong?





reply via email to

[Prev in Thread] Current Thread [Next in Thread]