aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ui
diff options
context:
space:
mode:
authorTim Culverhouse <tim@timculverhouse.com>2024-02-23 16:15:12 -0600
committerRobin Jarry <robin@jarry.cc>2024-02-26 09:22:40 +0100
commit83c3a4051b146651c9e56924bf8e4a9c8b01c5a8 (patch)
treef9d0e79593ab54231f2ea4fd9ea7d354a5d5dded /lib/ui
parentff77c7a52d78a487ea7775515aab4db399371075 (diff)
downloadaerc-83c3a4051b146651c9e56924bf8e4a9c8b01c5a8.tar.gz
ui: update vaxis and only use disambiguate csi-u flag
Update vaxis to 0.8.2, which adds the ability to specify any CSI-u flag combination. Explicitly only use the disambiguate flag. This enables aerc to have additional keybinds not previously possible (C-i, C-m) while preventing some internal logic bugs relating to single-modifier key presses. While these events can be useful, they are not needed in aerc and aerc currently would need several workarounds to properly handle them so let's just not request them in the first place. Fixes a bug with encoding shift+space in the presence of CSI-u in the terminal widget Signed-off-by: Tim Culverhouse <tim@timculverhouse.com> Tested-by: Inwit <inwit@sindominio.net> Tested-by: Jason Cox <dev@jasoncarloscox.com> Acked-by: Robin Jarry <robin@jarry.cc>
Diffstat (limited to 'lib/ui')
-rw-r--r--lib/ui/ui.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/ui/ui.go b/lib/ui/ui.go
index 3b1050b5..8cc797b2 100644
--- a/lib/ui/ui.go
+++ b/lib/ui/ui.go
@@ -50,6 +50,7 @@ var state struct {
func Initialize(content DrawableInteractive) error {
opts := vaxis.Options{
DisableMouse: !config.Ui.MouseEnabled,
+ CSIuBitMask: vaxis.CSIuDisambiguate,
}
vx, err := vaxis.New(opts)
if err != nil {