为 tmux window 装饰使用真彩色
Use true color for tmux window decorations
Tmux 在 2.2 版本中获得了对显示真彩色的支持。 tmux window 装饰是否可以使用真彩色?例如:
set -g window-active-style 'bg=#ffeedd'
目前,tmux 将从 256 色调色板中选择最接近的颜色,而不是指定的颜色。
This commit 很好地解释了您的问题。要解决您的问题,您可以在 .tmux.conf
:
中执行以下操作
set -ga terminal-overrides ",xterm-256color:Tc"
您可能需要稍微更改 xtemr-256color
以匹配您正在使用的终端。
截至 2016 年 7 月 14 日,Tmux 源代码中存在此功能。参见 https://github.com/tmux/tmux/issues/490
Tmux 在 2.2 版本中获得了对显示真彩色的支持。 tmux window 装饰是否可以使用真彩色?例如:
set -g window-active-style 'bg=#ffeedd'
目前,tmux 将从 256 色调色板中选择最接近的颜色,而不是指定的颜色。
This commit 很好地解释了您的问题。要解决您的问题,您可以在 .tmux.conf
:
set -ga terminal-overrides ",xterm-256color:Tc"
您可能需要稍微更改 xtemr-256color
以匹配您正在使用的终端。
截至 2016 年 7 月 14 日,Tmux 源代码中存在此功能。参见 https://github.com/tmux/tmux/issues/490