-
Notifications
You must be signed in to change notification settings - Fork 185
Description
We probably won't be able to listen to all keyboard events in Wayland like we do in X11/Xi (this is also evidenced by the fact that ttyxi keyboard capabilities don't work in GNOME Terminal on Ubuntu 23.10, where Wayland is the default; instead they only introduce input delays). However, we can at least detect the presence of Wayland so as not to unnecessarily activate delay-causing x11-related code. And we can still work with the clipboard through the Wayland API.
Alternative solution would be to use tools like wlclip along with this workaround, still don't know what to do with input delays. Also possible solution for Wayland-only systems is to use OSC52- and extended keyboard input mode supporting terminal emulatior, like kovidgoyal's kitty: all keys supported, no input delays, no x11 code needed for accessing clipboard, but still a little problem persists, see #2039
UPD: Using
--ee --nodetect=xi
makes input in GNOME Terminal working without delay even under Wayland, also clipboard works as expected and one ESC press is enough. Would be great to add whose two switches under Wayland by default.