From 74e82ab9e56dd517cbac62002637c1936cad46ad Mon Sep 17 00:00:00 2001 From: Gustaf Rydholm Date: Fri, 14 Oct 2022 00:09:53 +0200 Subject: Add support for undercurl in tmux --- .config/tmux/tmux.conf | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.config/tmux/tmux.conf b/.config/tmux/tmux.conf index b032a3f..fb4f881 100644 --- a/.config/tmux/tmux.conf +++ b/.config/tmux/tmux.conf @@ -7,8 +7,11 @@ unbind-key C-b bind-key C-a send-prefix # Allows vim to display colors correctly. -set -g default-terminal 'screen-256color' +set -g default-terminal "${TERM}" set -ga terminal-overrides ',*256col*:Tc' +# Undercurl +set -as terminal-overrides ',*:Smulx=\E[4::%p1%dm' # undercurl support +set -as terminal-overrides ',*:Setulc=\E[58::2::%p1%{65536}%/%d::%p1%{256}%/%{255}%&%d::%p1%{255}%&%d%;m' # underscore colours - needs tmux-3.0 # Status line set -g status on -- cgit v1.2.3-70-g09d2