Bug 93585

Summary: luit. Lost <alt>+key combinations
Product: xorg Reporter: antmak <antmak.pub>
Component: App/luitAssignee: Xorg Project Team <xorg-team>
Status: RESOLVED INVALID QA Contact: Xorg Project Team <xorg-team>
Severity: normal    
Priority: medium CC: antmak.pub
Version: gitKeywords: patch
Hardware: x86-64 (AMD64)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:
Attachments:
Description Flags
Now, <Alt>+key combinations works with non-Latin characters none

Description antmak 2016-01-04 22:39:27 UTC
Hello!

I dont know how to use luit for receive alt+ or ctrl+ NON-LATIN key combinations.

For example, I type english and cyrillic characters and combinations "q", "w", "e", "<alt>+q", "<alt>+w", "<alt>+e", "й", "ц", "у", "<alt>+й", "<alt>+ц", "<alt>+у"

Without luit:
 $ showkey -a

Press any keys - Ctrl-D will terminate this program

q     113 0161 0x71
w     119 0167 0x77
e     101 0145 0x65
^[q      27 0033 0x1b
     113 0161 0x71
^[w      27 0033 0x1b
     119 0167 0x77
^[e      27 0033 0x1b
     101 0145 0x65
й     208 0320 0xd0
     185 0271 0xb9
ц     209 0321 0xd1
     134 0206 0x86
у     209 0321 0xd1
     131 0203 0x83
^[й      27 0033 0x1b
     208 0320 0xd0
     185 0271 0xb9
^[ц      27 0033 0x1b
     209 0321 0xd1
     134 0206 0x86
^[у      27 0033 0x1b
     209 0321 0xd1
     131 0203 0x83

With luit:

$ luit -encoding 'KOI8-R' showkey -a

Press any keys - Ctrl-D will terminate this program

q     113 0161 0x71
w     119 0167 0x77
e     101 0145 0x65
^[q      27 0033 0x1b
     113 0161 0x71
^[w      27 0033 0x1b
     119 0167 0x77
^[e      27 0033 0x1b
     101 0145 0x65
й     202 0312 0xca
ц     195 0303 0xc3
у     213 0325 0xd5
^[      27 0033 0x1b
^[      27 0033 0x1b
^[      27 0033 0x1b


How can i get the right code for "<alt>+й" instead "^[      27 0033 0x1b" ?

Thx,
Merry Christmas and Happy New Year!
Comment 1 antmak 2016-01-06 22:17:18 UTC
Created attachment 120844 [details] [review]
Now, <Alt>+key combinations works with non-Latin characters

I solved problem. Would you like review my patch?
Comment 2 Thomas E. Dickey 2019-05-23 21:38:52 UTC
This is actually an issue for whatever terminal is being used, not luit.
A patch was mentioned, but not provided.
Comment 3 antmak 2019-05-24 01:38:57 UTC
> A patch was mentioned, but not provided.

Whose patch? Where?
Comment 4 antmak 2019-05-24 01:56:26 UTC
> This is actually an issue for whatever terminal is being used, not luit.


I use GNOME Terminal 3.26.2 , this solution works for me https://bugs.freedesktop.org/attachment.cgi?id=120844 

(I'm playing in a MUD and use alt+<cyrillic> combinations as a hotkeys)
Comment 5 antmak 2019-05-24 01:58:24 UTC
> (I'm playing in a MUD and use alt+<cyrillic> combinations as a hotkeys)

**I'm playing in a MUD using the Tintin++  2.01.3 console client

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.