diff --git a/docs/health-check.md b/docs/health-check.md index 6bfd954..d54fe29 100644 --- a/docs/health-check.md +++ b/docs/health-check.md @@ -34,3 +34,11 @@ If can't skip this check by adding the following in your .tmux.conf file: ``` set -g @fingers-skip-health-check '1' ``` + +## Wrong $TERM value + +Tmux fingers works better with proper 256 support. Set `@default-terminal` to either `screen-256color` or `xterm-256color`. + +``` +set -g @default-terminal "screen-256color" +``` diff --git a/scripts/health-check.sh b/scripts/health-check.sh index 5351fca..40a2ea7 100755 --- a/scripts/health-check.sh +++ b/scripts/health-check.sh @@ -144,6 +144,11 @@ function perform_health_check() { echo " * WARNING: tmux 2.2+ is recommended" fi + if [[ "$TERM" != "screen-256color" ]] && [[ "$TERM" != "xterm-256color" ]]; then + log_message " * Wrong \$TERM value '$TERM'." + healthy=0 + fi + if [[ $healthy -eq 0 ]]; then while [[ $(is_tmux_ready) = 0 ]]; do : # waiting for-tmux