為什麼tmux需要手動設定256色模式? 2024-7-19 • terminal colors tmux 我剛剛登入一台機器,發現 tmux 內部的顏色改變了。似乎即使使用TERM=xterm-256color和tput colors⇒ 256 tmux 也會切換到TERM=screen和tput colors⇒ 8。 明確設定 set -g default-terminal "screen-256color" 有.tmux.conf幫助,但我想知道為什麼它首先會改變。 相關內容