Skip to main content
Browse referenceWhat's New

What's New in tmux 3.8

Try a floating scratch shell on a clean server, then check which features are available on older tmux releases.

Verified Nov 2026 for tmux 3.8
5 min read
intermediate

The current stable release is tmux 3.8, released September 9, 2026. The exercise below uses 3.8. Run tmux -V to check the installed binary. Inside an existing session, tmux display-message -p '#{version}' reports the server version, which can still be older after a package upgrade.

Try a floating scratch shell in tmux 3.8

Use a scratch shell to inspect a build or run a quick command while keeping your tiled workspace intact. tmux 3.7 introduced floating panes. In 3.8 you can give them a title and move and resize them with commands, which makes a repeatable layout possible without a mouse.

Run the example from a regular terminal. The named socket isolates it from your regular server and -f /dev/null skips your personal configuration. The first command creates a detached 100-by-34 window so the geometry is reproducible. Keep using the same shell so the socket and pane ID variables remain available.

bash
socket="floating-lab-$$"
tmux -L "$socket" -f /dev/null new-session -d -s lab -n work -x 100 -y 34
scratch=$(tmux -L "$socket" new-pane -dP -F '#{pane_id}' -t lab:work \
  -T scratch -X 2 -Y 2 -x 50 -y 12)
 
tmux -L "$socket" list-panes -t lab:work \
  -F '#{pane_id} floating=#{pane_floating_flag} size=#{pane_width}x#{pane_height}'

Expect two panes. The original tiled pane reports floating=0 size=100x34. The scratch pane reports floating=1 size=48x10 because its border takes one cell on each side. The uppercase -X and -Y flags set the position. Lowercase -x and -y on new-pane and resize-pane set the size. The saved pane ID targets the scratch shell even if focus or pane indexes change.

bash
tmux -L "$socket" move-pane -t "$scratch" -X 4 -Y 3
tmux -L "$socket" resize-pane -t "$scratch" -x 42 -y 9
tmux -L "$socket" list-panes -t lab:work \
  -F '#{pane_id} at=#{pane_left},#{pane_top} size=#{pane_width}x#{pane_height}'

The scratch pane's interior should now start at 5,4 and measure 40x7 in the detached window. The tiled pane should still measure 100x34. Run tmux -L "$socket" attach-session -t lab to see it, then detach with Ctrl+b d. Attaching may resize the window to match your terminal.

bash
tmux -L "$socket" kill-pane -t "$scratch"
tmux -L "$socket" list-panes -t lab:work -F '#{pane_id} floating=#{pane_floating_flag}'
tmux -L "$socket" kill-session -t '=lab'

The list should now show just the original tiled pane. Use a popup for a short picker that can close when its program exits. Use a floating pane for a shell you want to keep while switching back to another pane. Use a tiled split when both programs should stay visible side by side. See the 3.8 manual for the flags and the release notes for the upgrade details.

tmux 3.7c

This maintenance release keeps the 3.7 feature set and fixes five issues:

  • Scrollbars now appear correctly on newly created windows.
  • Creating a floating pane from a zoomed window first unzooms it, preventing a crash.
  • message-format uses message-style as its default style again.
  • Loops check the time periodically to reduce repeated checks.
  • macOS builds use jemalloc to work around an apparent calloc bug.

See the official 3.7c changelog and the installation guide for the stable source tarball and upgrade steps.

tmux 3.7

Floating panes

Since 3.7 The new new-pane command (alias newp) opens a floating pane that sits above the tiled layout — like a popup, but it isn't modal and behaves like a regular pane. It's bound to Prefix * by default.

bash
# Prefix * opens a floating pane, or from a shell:
tmux new-pane            # floating shell
tmux new-pane 'htop'     # run a command in a floating pane

Floating panes are an early feature: in 3.7 they can only be moved and resized with the mouse.

Line numbers in copy mode

Since 3.7 Copy mode can now show line numbers — handy for pairing or referencing scrollback. Numbering can be default (0 is the top visible line), absolute, relative to the cursor, or hybrid.

bash
set -g copy-mode-line-numbers hybrid
# set -g copy-mode-line-number-style 'fg=#8b949e'
# set -g copy-mode-current-line-number-style 'fg=#00e68a,bold'

Messages that overlay the status line

Since 3.7 Messages and prompts are now drawn as a single format (message-format), so they can occupy just part of the status line instead of replacing the whole thing. Note that message-style now needs fill to cover the full width (the default includes fill=yellow).

Focus follows mouse

Since 3.7 Make the pane under the mouse pointer the active pane automatically:

bash
set -g mouse on
set -g focus-follows-mouse on

More 3.7 additions: kill-session -g to kill a whole session group, run-shell arguments as #{1}, new copy-mode commands ( recentre-top-bottom, scroll-to-mouse, scroll-exit-on/off/toggle), tree-mode-preview-format, the get-clipboard option, OSC 9;4 progress bar forwarding, and seconds in clock mode.

tmux 3.6

Pane scrollbars

Since 3.6 Panes can now show a scrollbar so you can see where you are in the scrollback history at a glance.

bash
set -g pane-scrollbars on
set -g pane-scrollbars-position right   # left or right
# set -g pane-scrollbars-style 'bg=#30363d,fg=#00e68a'

Automatic dark / light theme

Since 3.6 tmux now supports terminal mode 2031, so it can detect and report whether the terminal is in dark or light mode (falling back to a guess from the background colour). Applications running inside tmux can adapt their colours automatically.

Copy-mode styling

Since 3.6 Style the selection and the position indicator in copy mode.

bash
set -g copy-mode-selection-style 'bg=#00e68a,fg=#000000'
set -g copy-mode-position-style 'bg=#13161d,fg=#8b949e'

More 3.6 additions: codepoint-widths to fix Unicode width issues, tiled-layout-max-columns, no-detach-on-destroy, the new selection-mode command, and initial-repeat-time.

tmux 3.5

Since 3.5 OSC 8 hyperlinks are shown in copy mode, and the copy_cursor_hyperlink format gives the link under the cursor so you can copy or open it.

Mirrored layouts

Since 3.5 New mirrored main-horizontal and main-vertical layouts put the main pane at the bottom or right instead of the top or left.

Snappier defaults

Since 3.5 The default escape-time dropped to 10ms, a new prefix-timeout option cancels a half-entered prefix, and extended (CSI u) keys were overhauled with a new extended-keys-format option.

bash
# Already the default in 3.5+, shown explicitly for older versions:
set -sg escape-time 10

tmux 3.4

SIXEL images

Since 3.4 When built with --enable-sixel, tmux can display SIXEL graphics inside panes — image previews, plots and more in supported terminals.

Shell prompt marking (OSC 133)

Since 3.4 tmux understands OSC 133 prompt markers, so you can jump between shell prompts in copy mode with next-prompt and previous-prompt.

bash
bind -T copy-mode-vi '[' send -X previous-prompt
bind -T copy-mode-vi ']' send -X next-prompt

Since 3.4 menu-style and menu-border-style theme popup menus, and OSC 8 hyperlinks are supported throughout.

Upgrading? Existing tmux servers keep running the old version. Save your work and finish running jobs before restarting: tmux kill-server terminates all sessions and programs on that server. See the upgrade steps.