From a44324a7db8deddb301efcbfec5004649d8a50c4 Mon Sep 17 00:00:00 2001 From: vglfr Date: Thu, 15 Jul 2021 09:08:17 +0300 Subject: [PATCH 1/2] Interpret `\b` as KBS (for alacritty) --- src/Graphics/Vty/Input/Terminfo.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Graphics/Vty/Input/Terminfo.hs b/src/Graphics/Vty/Input/Terminfo.hs index 26cd022..cb90dae 100644 --- a/src/Graphics/Vty/Input/Terminfo.hs +++ b/src/Graphics/Vty/Input/Terminfo.hs @@ -91,7 +91,7 @@ specialSupportKeys = -- special support for ESC , ("\ESC",EvKey KEsc []), ("\ESC\ESC",EvKey KEsc [MMeta]) -- Special support for backspace - , ("\DEL",EvKey KBS []), ("\ESC\DEL",EvKey KBS [MMeta]) + , ("\DEL",EvKey KBS []), ("\ESC\DEL",EvKey KBS [MMeta]), ("\b",EvKey KBS []) -- Special support for Enter , ("\ESC\^J",EvKey KEnter [MMeta]), ("\^J",EvKey KEnter []) -- explicit support for tab From e9096594dce964ebb21bb871541d35eacd3fa672 Mon Sep 17 00:00:00 2001 From: vglfr Date: Thu, 15 Jul 2021 09:12:44 +0300 Subject: [PATCH 2/2] Fix typo in docs --- src/Graphics/Vty/Config.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Graphics/Vty/Config.hs b/src/Graphics/Vty/Config.hs index 924ae3f..6c14f64 100644 --- a/src/Graphics/Vty/Config.hs +++ b/src/Graphics/Vty/Config.hs @@ -54,7 +54,7 @@ -- If a debug log is requested then vty will output the current input -- table to the log in the above format. A workflow for using this is -- to set @VTY_DEBUG_LOG@. Run the application. Check the debug log for --- incorrect mappings. Add corrected mappings to @$HOME/.vty/config@. +-- incorrect mappings. Add corrected mappings to @$HOME\/.vty\/config@. -- -- = Unicode Character Width Maps --