brewedbits.dev

Personal blog with guides and news on selfhosting, Linux and AI, from the Netherlands

nextDash nextdash --aboutYour bookmarks. Your terminal. checks your links knows your Docker host one container, no cloudLive demo →nextdash.cc ↗

Tip: Ctrl-b ~ shows the tmux messages you missed

Tmux
~/tips/tip-tmux-show-messages

Ctrl-b ~

Reopens status bar messages that disappeared too fast.

tmux messages flash in the status bar for a second or so. When you miss an error from a config reload or a key binding, you can read it back.

Ctrl-b ~

That runs show-messages, which lists the recent messages of your client with a timestamp, in a view you can scroll like copy mode. Errors from commands and the text of display-message end up here, and on recent versions so does a log of the commands clients ran. Press q to go back.

From a shell the command is the same:

tmux show-messages | tail -5

How many messages are kept is set with message-limit, a server option. The default in tmux 3.8 is 1000, which I think is plenty.

If the problem is that messages vanish before you can read them, display-time keeps them on screen longer. This is for the moment after, when they are already gone.

Config file errors from server startup are a separate case. tmux shows those in the first session it creates, in a pane in view mode, rather than in this list, so look there if your new ~/.tmux.conf line seems to do nothing.

Further reading: tmux manual page (OpenBSD)

More Tmux tips tmux new -d -s report -x 200 -y 50 'top' tmux wait-for build-done set -g allow-passthrough on tmux kill-server Ctrl-b [ All Tmux tips (125) All topics

Link