Re: XLookupString return inconsistent
> So there's no way to work around this? I can think of three: - You have two Shift keys and most likely two Mod4 keys. This gives you three more possibilities to enter the same combination. If any of this combinations works and is sufficiently convenient to type, that would be the easiest workaround. - You could use another physical key for Mod4. For example, you could swap the right Mod4 with the Menu key. - You could use a XKB feature called "latches". These are like modifiers that remain "pressed" until you hit the next non-modifier key. For example, with a Mod4-latch, you could first press and release Mod4, then enter Shift+2 to give Mod4+Shift+2 overall. I never really used latches, and I suspect they take some time to get used to. Andreas ___ xorg@lists.x.org: X.Org support Archives: http://lists.freedesktop.org/archives/xorg Info: https://lists.x.org/mailman/listinfo/xorg Your subscription address: %(user_address)s
Re: XLookupString return inconsistent
also sprach wetts...@gmail.com[2016-09-29 21:00 +0200]: > I do not know, but I do not see the benefit of doing that. It > certainly would not fix your problem, which I still think is > hardware. I think you are right. I just noticed that this only happens with my USB keyboards, not with the Thinkpad built-in keyboard. So there's no way to work around this? -- @martinkrafft | http://madduck.net/ | http://two.sentenc.es/ "die menschen drängen sich zum lichte, nicht um besser zu sehen, sondern um besser zu glänzen." - friedrich nietzsche spamtraps: madduck.bo...@madduck.net digital_signature_gpg.asc Description: Digital GPG signature (see http://martin-krafft.net/gpg/sig-policy/999bbcc4/current) ___ xorg@lists.x.org: X.Org support Archives: http://lists.freedesktop.org/archives/xorg Info: https://lists.x.org/mailman/listinfo/xorg Your subscription address: %(user_address)s
Re: XLookupString return inconsistent
> Long story short: do you see any chance in making this bit of > legacy (nostalgia?) code configurable, or remove it altogether? I do not know, but I do not see the benefit of doing that. It certainly would not fix your problem, which I still think is hardware. Andreas ___ xorg@lists.x.org: X.Org support Archives: http://lists.freedesktop.org/archives/xorg Info: https://lists.x.org/mailman/listinfo/xorg Your subscription address: %(user_address)s
Re: XLookupString return inconsistent
also sprach wetts...@gmail.com[2016-09-12 18:01 +0200]: > > And moments after clicking send, I realized this is really just hardcoding > > US keyboard layout & ASCII encoding - Shift-2 is '@' and Ctrl-@ is '\0'. > > Oh, yes. And Ctrl+3-7 get mapped to 0x1b-0x1f, the control codes beyond > Ctrl-Z. Ctrl+8 becomes 0x7f, that is, ASCII DEL. So the full ASCII > range becomes available. It does make sense, from a perspective of text > terminals. Hey guys, sorry for the late response to "my" thread. So this makes sense from the perspective of text terminals, but we are talking X.org here, aren't we? ;) Long story short: do you see any chance in making this bit of legacy (nostalgia?) code configurable, or remove it altogether? Cheers, -- @martinkrafft | http://madduck.net/ | http://two.sentenc.es/ quidquid latine dictum sit, altum viditur. spamtraps: madduck.bo...@madduck.net digital_signature_gpg.asc Description: Digital GPG signature (see http://martin-krafft.net/gpg/sig-policy/999bbcc4/current) ___ xorg@lists.x.org: X.Org support Archives: http://lists.freedesktop.org/archives/xorg Info: https://lists.x.org/mailman/listinfo/xorg Your subscription address: %(user_address)s
Re: XLookupString return inconsistent
> And moments after clicking send, I realized this is really just hardcoding > US keyboard layout & ASCII encoding - Shift-2 is '@' and Ctrl-@ is '\0'. Oh, yes. And Ctrl+3-7 get mapped to 0x1b-0x1f, the control codes beyond Ctrl-Z. Ctrl+8 becomes 0x7f, that is, ASCII DEL. So the full ASCII range becomes available. It does make sense, from a perspective of text terminals. Andreas ___ xorg@lists.x.org: X.Org support Archives: http://lists.freedesktop.org/archives/xorg Info: https://lists.x.org/mailman/listinfo/xorg Your subscription address: %(user_address)s
Re: XLookupString return inconsistent
On 09/12/16 08:40 AM, Alan Coopersmith wrote: So Control-Shift-2 maps to the NULL character because someone three decades ago thought it useful to emulate a text terminal popular in that decade. And moments after clicking send, I realized this is really just hardcoding US keyboard layout & ASCII encoding - Shift-2 is '@' and Ctrl-@ is '\0'. -- -Alan Coopersmith- alan.coopersm...@oracle.com Oracle Solaris Engineering - http://blogs.oracle.com/alanc ___ xorg@lists.x.org: X.Org support Archives: http://lists.freedesktop.org/archives/xorg Info: https://lists.x.org/mailman/listinfo/xorg Your subscription address: %(user_address)s
Re: XLookupString return inconsistent
On 09/12/16 08:25 AM, wetts...@gmail.com wrote: Do you have any idea what might be going on? In libX11, file KeyBind.c, function _XTranslateKeySym, there is the following piece of code: /* only apply Control key if it makes sense, else ignore it */ if (modifiers & ControlMask) { if ((c >= '@' && c < '\177') || c == ' ') c &= 0x1F; else if (c == '2') c = '\000'; else if (c >= '3' && c <= '7') c -= ('3' - '\033'); else if (c == '8') c = '\177'; else if (c == '/') c = '_' & 0x1F; } I have no clue what the "sense" is the comment speaks about, but clearly, the weird behaviour you see was intended. The comment from 1987 seems to have originally referred to the mapping of ASCII characters 0x40 through 0x5F into the ASCII control character range of 0x0 through 0x1F: https://cgit.freedesktop.org/~alanc/xc-historical/commit/xc/lib/X11/KeyBind.c?id=0aecc4f21449050657ce34f7599d383e14fcdf40 The handling of the number keys was added the next year with a comment about doing things vt200 style: https://cgit.freedesktop.org/~alanc/xc-historical/commit/xc/lib/X11/KeyBind.c?id=f2485bc25a7394fbd830cd60108b220319dbcb7d So Control-Shift-2 maps to the NULL character because someone three decades ago thought it useful to emulate a text terminal popular in that decade. -- -Alan Coopersmith- alan.coopersm...@oracle.com Oracle Solaris Engineering - http://blogs.oracle.com/alanc ___ xorg@lists.x.org: X.Org support Archives: http://lists.freedesktop.org/archives/xorg Info: https://lists.x.org/mailman/listinfo/xorg Your subscription address: %(user_address)s