Byobu绝对拒绝支持256种颜色(术语始终返回`tmux`)

至今:

  1. I've added set -g default-terminal "xterm-256color" in the following places:
    • /usr/share/byobu/profiles/tmux (from here)
    • ~/.byobu/tmux (from here)
    • ~/.byobu/profile
    • ~/.byobu/profile.tmux
  2. I've made sure that I'm calling byobu from a terminal (SSH) with its $TERM set to xterm-256color

I've also tried setting BYOBU_TERM manually before invoking byobu, but it gets overridden anyway and I can't understand their weird logic to determine whether or not they should support color.

No matter what I try, the terminal is either screen (when byobu is started as a daemon by cron), or tmux when started manually. I know how to fix the cron issue, but ONLY if I can make byobu work with a real terminal first.

My root problem is trying to make italic text work within byobu, because right now it just highlights text (inverts the color). Obviously a step towards that is making it properly return xterm-256color as the terminal, but I can't figure out how to do that because no matter how many files I paste set -g default-terminal "xterm-256color" into, nothing seems to work.

byobu版本5.125 tmux 2.6 Ubuntu 18.04.1 LTS

有人愿意帮助我解决这个顽固的问题吗?

Note: This question is not a duplicate of Getting 256 colors to work with byobu. This is a related, but obviously not equivalent problem, since those answers did not work...