Re:Comprehensive Keyboard Handling in Terminals
by kps on Sunday April 02, 2023 @02:08PM
(#35413382)
But xterm and xterm-compatibles have been able to do this for over a decade (CSI > 4 ; 2 m).
Re:Comprehensive Keyboard Handling in Terminals
by nextlevelwizard on Monday April 03, 2023 @02:40AM
(#35419404)
While that sounds like a good thing is Esc+<key> really that useful of a bind when you already have Ctrl/Alt + <key> and you can get twice the keys if you add shift in the mix.
Of course your workflow is yours.
Re:Comprehensive Keyboard Handling in Terminals
by kzrdude on Monday April 03, 2023 @06:06AM
(#35420999)
When Alt+a looks the same as Esc+a, then the program has to wait biefly after it sees you press Esc - the continuation could mean it's really Alt+a you want to send.
That latency interferes just with a plain Esc key press. There's no weird use case in this.
Re:Comprehensive Keyboard Handling in Terminals
by nextlevelwizard on Monday April 03, 2023 @06:28AM
(#35421160)
Either my terminal does some magic or this is not true. Most of my vim & tmux commands are alt+something and these execute as soon as I press the bind.
Or does tmux make them work automagically?
Re:Comprehensive Keyboard Handling in Terminals
by kzrdude on Monday April 03, 2023 @09:53AM
(#35423561)
Maybe https://neovim.io/doc/user/options.html#'ttimeout' could be evidence that it's not a problem that I've made up, it exists in some terminals. My comment was about that latency of pressing a single Esc.
Re:Comprehensive Keyboard Handling in Terminals
by nextlevelwizard on Monday April 03, 2023 @10:21AM
(#35424022)
I also can't say I've noticed such latency
Kitty has a new keyboard handling protocol, and Neovim supports it. So if you use kitty, you can use key mappings in neovim in a more predicatable and flexible way.