From 83c3a4051b146651c9e56924bf8e4a9c8b01c5a8 Mon Sep 17 00:00:00 2001 From: Tim Culverhouse Date: Fri, 23 Feb 2024 16:15:12 -0600 Subject: 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 Tested-by: Inwit Tested-by: Jason Cox Acked-by: Robin Jarry --- lib/ui/ui.go | 1 + 1 file changed, 1 insertion(+) (limited to 'lib') 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 { -- cgit