0

I use the kitty terminal emulator for my day to day development, and I learned that it has these custom escape sequences for fancy underlines. I really wanted to get them working in vim, and after some vimrc tweaks, they started showing up. However, whenever I'm in a tmux session, the codes suddenly stop working. I've read a bit into this and it looks like tmux is 'swallowing' the escape codes, and someone suggested surrounding the sequences like so: "\ePtmux;\e<foo>\e\\, but no luck: no underline/undercurl was showing.

This could be something impossible to do, but I have no idea where to start looking if it isn't, so any help would be appreciated!

My .tmux.conf

set -g default-terminal "xterm-kitty"
set -sg escape-time 0
  • I suggest that you file a bug / enhancement request against tmux so that their maintainers can address this properly. – egmont Jun 21 '18 at 8:38
0

tmux is a terminal emulator. The control sequences that kitty understands are irrelevant to applications that are talking to a tmux terminal. tmux does not understand them. Your applications running under tmux have no direct connection to a kitty-emulated terminal.

For such a thing to work, the terminal emulator part of tmux has to understand these control sequences coming to it from applications, the internals of tmux have to understand the concept of different sorts of underlines, and the part of tmux that realizes its display onto another terminal needs to understand both the requisite control sequences and what terminal types support them. That latter in particular also requires extending the terminfo database with more capability definitions.

None of this has been done. Or even suggested.

If you want this, write the code and submit patches to tmux, terminfo, and other related projects that will need updating; or employ someone else to do so.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.