mutt
다음과 같은 세션 을 시작하면 tmux
:
$ tmux new-session -s mutt mutt
Mutt는 다음과 같이 불평합니다.
Error in /home/lars/.mutt/colors, line 20: 230: color not supported by term
Error in /home/lars/.mutt/colors, line 26: 244: color not supported by term
tmux
하지만 명령 없이 이렇게 시작하면 다음과 같습니다 .
$ tmux new-session -s mutt
그런 다음 tmux
세션 내부에서 start mutt
:
$ exec mutt
문제없이 작동합니다. 두 경우 모두 세션 TERM
내부는 tmux
으로 설정됩니다 screen-256color
. 이 두 경우 사이에 기능적 차이가 없어서 혼란 스럽습니다. 그만한 가치가 있기 때문에 -2
tmux 옵션("tmux가 터미널이 256색을 지원한다고 가정하도록 강제")은 이 동작에 아무런 영향을 미치지 않는 것 같습니다.
이런 행동을 본 사람이 있나요? 원인이 무엇인지, 해결 방법을 알고 계시나요?
답변1
tmux new-session -s mutt
echo $TERM
결과 는 다음과 같습니다 .xterm-256color
하지만,
tmux new-session -s mutt 'echo $TERM && sleep 10'
수익률 screen
. 이 문제를 해결하려면 다음을 시도해 보세요.
tmux new-session -s mutt 'TERM=xterm-256color; echo $TERM && sleep 10'
올바른 설정을 확인하고 mutt가 작동하도록 하려면:
tmux new-session -s mutt 'TERM=xterm-256color mutt'