In the middle of the desert you can say anything you want

20 Dec 2021

kitty terminal size issues

Had weird issues with kitty terminal output being wrong, lines in vim/nvim being in wrong places, usually because it thought the terminal was a different size than it really was (blamed it on nvim initally, but the problem happened in other complex CLI programs too, notably tig).

$TERMINFO wasn’t set, and the terminfo file was nowhere to be found. The package kitty-terminfo was installed though.

In any case, downloaded the terminfo file from the repo and set the env variable manually in zshrc, now it works:

export TERMINFO="$HOME/.config/kitty/xterm-kitty"
Nel mezzo del deserto posso dire tutto quello che voglio.