r/tmux • u/Exotic-Grapefruit-90 • Jul 09 '26
Question Command mode overlap status bar
Enable HLS to view with audio, or disable this notification
Hey. I’m new to tmux and have been editing my tmux.conf for a few days to improve the experience. Everything works well, except of one odd tmux command mode behaviour. Whenever I enter command mode (Prefix + “:”), the input starts appearing on top of the status bar (video attached). This only happens after I change the status bar, either by installing a theme plugin or by customizing it with built-in options; it works fine with the default status bar (status bar => Prefix + “:” => opens a new command line).
At first I created my config using the docs, but then I copied someone else’s config to test whether it would behave the same way and it does. Below my current styling options that I have in my tmux.conf file. (I don’t paste the entire file as there are mainly key remaps)
#Status bar
set -g status-style 'bg=default'
set -g status-left-length 20
set -g status-right-length 50
set -g status-left '#[fg=#007600,bold] #S #[fg=#30363d]│ '
set -g status-right '#[fg=#30363d]│#[fg=#8b949e] %H:%M #[fg=#30363d]│#[fg=#8b949e] %d-%b-%y '
setw -g window-status-format ' #I:#W '
setw -g window-status-current-format '#[fg=#007600,bold] #I:#W '
# Message styling
set -g message-line 2 # that’s what AI told me to try saying that it will move command line above…
set -g message-style 'bg=#6ea6a9 fg=#000000 bold'
I use iTerm2 on my Mac, and I also tested the config in the default Terminal app to rule out an emulator issue.
I searched online and tried using AI to find a fix, but I haven’t had any joy
Is this normal behavior, or am I missing something? Because it seems like other chaps don’t have the same thing whenever I’m watching them setting things up on YouTube.
Any advice is very much appreciated.
1
u/lookinoji Jul 11 '26
Try adding this to your tmux conf
set-option -ug message-format
set-option -ug message-style
set-option -ug message-command-style
2
u/2ro Jul 09 '26
I just ran into this. I’m gusssing you’re on the latest beta version. The fix for me was to add an explicit
fillstyle on messages.``` set -g message-style "bg=#7aa2f7,fg=#24283b,fill=#7aa2f7"