Xfce, xfce4-terminal, and UTF-8
George Mitchell
george+freebsd at m5p.com
Fri Jan 1 22:37:16 UTC 2021
On 1/1/21 3:12 PM, Guido Falsi via freebsd-ports wrote:
> [...]
> .cshrc does not look like the correct place for it anyway. That file is
> executed multiple times during a session. I'm not sure how it can work
> for everything else. Also the fact that XFCE has it's own configuration,
> if it's not configured from there could cause conflicts.
>
> IMHO a better place would be .xsession if using a display manager or
> Xinit if using startx.
>
> If using XFCE as your DE it's own settings tool would be the best place.
>
Regardless of where I put setxkbmap, xev shows this sequence of events
when I type the compose key (Left Win), ', and e to enter "é":
KeyPress event, serial 37, synthetic NO, window 0x2e00001,
root 0x50f, subw 0x2e00002, time 89630, (34,51), root:(905,493),
state 0x10, keycode 133 (keysym 0xff20, Multi_key), same_screen YES,
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: True
KeyRelease event, serial 37, synthetic NO, window 0x2e00001,
root 0x50f, subw 0x2e00002, time 89758, (34,51), root:(905,493),
state 0x10, keycode 133 (keysym 0xff20, Multi_key), same_screen YES,
XLookupString gives 0 bytes:
XFilterEvent returns: False
KeyPress event, serial 37, synthetic NO, window 0x2e00001,
root 0x50f, subw 0x2e00002, time 92574, (34,51), root:(905,493),
state 0x10, keycode 48 (keysym 0x27, apostrophe), same_screen YES,
XLookupString gives 1 bytes: (27) "'"
XmbLookupString gives 1 bytes: (27) "'"
XFilterEvent returns: True
KeyRelease event, serial 37, synthetic NO, window 0x2e00001,
root 0x50f, subw 0x2e00002, time 92750, (34,51), root:(905,493),
state 0x10, keycode 48 (keysym 0x27, apostrophe), same_screen YES,
XLookupString gives 1 bytes: (27) "'"
XFilterEvent returns: False
KeyPress event, serial 37, synthetic NO, window 0x2e00001,
root 0x50f, subw 0x2e00002, time 98926, (34,51), root:(905,493),
state 0x10, keycode 26 (keysym 0x65, e), same_screen YES,
XLookupString gives 1 bytes: (65) "e"
XmbLookupString gives 1 bytes: (65) "e"
XFilterEvent returns: True
KeyPress event, serial 37, synthetic NO, window 0x2e00001,
root 0x50f, subw 0x2e00002, time 98926, (34,51), root:(905,493),
state 0x10, keycode 0 (keysym 0xe9, eacute), same_screen YES,
XLookupString gives 0 bytes:
XmbLookupString gives 1 bytes: (e9) "�"
XFilterEvent returns: False
KeyRelease event, serial 37, synthetic NO, window 0x2e00001,
root 0x50f, subw 0x2e00002, time 99062, (34,51), root:(905,493),
state 0x10, keycode 26 (keysym 0x65, e), same_screen YES,
XLookupString gives 1 bytes: (65) "e"
XFilterEvent returns: False
The same sequence in an xfce4-terminal window shows nothing, but
any following keypresses act normally.
I removed the setxkbmap command from my .cshrc and used the XFCE
keyboard settings to set the compose key to Left Win. Then I logged
out and back in. I verified that the keyboard settings dialog still
showed that Left Win was used for the compose key. But it does not
work at all. When I type Left Win, ', e in xfce4-terminal (or in
any other client in my session), it shows 'e. Xev shows the three
keypresses and releases but no e with acute accent. -- George
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature
Type: application/pgp-signature
Size: 840 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20210101/531321c0/attachment.sig>
More information about the freebsd-ports
mailing list