home: tmux: add hyperlinks support

Somewhat unfortunate that those have to be enabled by force, but easy
enough to support.
This commit is contained in:
Bruno BELANYI 2024-03-07 15:44:17 +00:00
parent 742b4c39a2
commit 22139bd69f

View file

@ -23,6 +23,8 @@ in
terminalFeatures = mkOption { terminalFeatures = mkOption {
type = with types; attrsOf (submodule { type = with types; attrsOf (submodule {
options = { options = {
hyperlinks = my.mkDisableOption "hyperlinks through OSC8";
trueColor = my.mkDisableOption "24-bit (RGB) color support"; trueColor = my.mkDisableOption "24-bit (RGB) color support";
}; };
}); });
@ -101,6 +103,8 @@ in
'' ''
} }
# Force OSC8 hyperlinks for each relevant $TERM
${mkTerminalFlags "hyperlinks" "hyperlinks"}
# Force 24-bit color for each relevant $TERM # Force 24-bit color for each relevant $TERM
${mkTerminalFlags "trueColor" "RGB"} ${mkTerminalFlags "trueColor" "RGB"}
''; '';