zsh: protect kitty stuff when not needed
This commit is contained in:
parent
42f9170e8f
commit
3fb5d06b83
1 changed files with 272 additions and 269 deletions
|
@ -1,3 +1,7 @@
|
|||
# just some funky stuff to try if zle can work with
|
||||
# kitty extended keyboard protocol (and it somewhat can!)
|
||||
if (( ${+ENABLE_KITTY_STUFF} ))
|
||||
then
|
||||
local esc="\x1b"
|
||||
local csi="${esc}["
|
||||
local KITTY_ESCAPE="${csi}27u"
|
||||
|
@ -121,11 +125,10 @@ do
|
|||
KITTY_CTRL_ALT[${(#)i}]="${csi}$i;8u"
|
||||
done
|
||||
|
||||
if (( ${+ENABLE_KITTY_STUFF} ))
|
||||
then
|
||||
start-kitty-keys() {
|
||||
echo -n "${csi}>1u"
|
||||
}
|
||||
|
||||
stop-kitty-keys() {
|
||||
echo -n "${csi}<u"
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue