[tmux.app]
tmux 3.8

Reference · Troubleshooting

tmux troubleshooting: find your symptom, copy the fix

Type what you see, an error message or a symptom, and jump to a fix that we reproduced and tested on tmux 3.8 (and on Ubuntu's 3.4 where it differs). Most tmux problems come down to three things: the server is still running with old settings, tmux does not know what your outer terminal supports, or a key went to the wrong place.

Updated Tested on tmux 3.816 min read

On this page
  1. "tmux: command not found"
  2. "no server running on /tmp/tmux-1000/default" and "error connecting to …"
  3. "server exited unexpectedly" or "lost server"
  4. "sessions should be nested with care, unset $TMUX to force"
  5. "open terminal failed: not a terminal"
  6. "missing or unsuitable terminal: xterm-ghostty" (or xterm-kitty, alacritty)
  7. ECONNRESET in a tmux pane (Claude Code, npm, Node tools)
  8. tmux frozen, stuck or not responding
  9. Delay after pressing Escape in Vim or Neovim
  10. Pasting large text is slow, or a paste runs key bindings
  11. Ctrl+b (the prefix) not working, or a new prefix not working
  12. Washed-out colors: fix true color (24-bit RGB) in tmux
  13. tmux-256color, screen-256color and TERM compatibility
  14. Missing undercurls and colored underlines in Neovim
  15. Borders drawn as "qqqq" or "xxxx", broken Unicode and emoji
  16. Can't scroll up in tmux, or the mouse wheel doesn't scroll
  17. Can't select text normally with the mouse
  18. Copy doesn't reach the system clipboard (macOS, Linux, SSH)
  19. tmux config changes not applying
  20. SSH agent forwarding broken after you reattach
  21. Commands not found only inside tmux ($PATH issues)
  22. FAQ
  23. Next steps

"tmux: command not found"

Quick answer

Why does my shell say tmux: command not found?

tmux is not installed (or not on your PATH). Install it from your package manager, then check with tmux -V:

shell
sudo apt install tmux        # Ubuntu, Debian, WSL
brew install tmux            # macOS
sudo dnf install tmux        # Fedora, RHEL
tmux -V
tmux 3.8

Installed but still not found? Run command -v tmux. Homebrew on Apple Silicon installs to /opt/homebrew/bin, which must be on your PATH; a source build goes to /usr/local/bin. On Windows there is no native tmux: install it inside WSL. Guides: Linux, macOS, Windows. If other commands are missing only inside tmux, see PATH issues.

"no server running on /tmp/tmux-1000/default" and "error connecting to …"

Quick answer

What does no server running on /tmp/tmux-1000/default mean?

No tmux server is running for your user, so there are no sessions to list or attach to. It is not a fault: start one with tmux new -s main. The sessions you had are gone if the server stopped (last session closed, kill-server, logout with systemd killing user processes, or a reboot).

The exact wording tells you what state the socket is in. We reproduced each case on tmux 3.8 and 3.4, which print the same messages:

MessageWhat happenedFix
no server running on /tmp/tmux-1000/defaultThe socket file exists but no server answers. Normal after the last session exits or after kill-server: tmux leaves the socket file behind.Start a new session. The stale socket is reused automatically.
error connecting to /tmp/tmux-1000/default (No such file or directory)There is no socket at all: no server has started since boot (or since /tmp was cleaned), or you are looking in a different place than the server uses.Start a session, or point at the right socket (see below).
error connecting to … (Permission denied)The socket belongs to another user, typically after sudo tmux.Run tmux as the user who started it. Root's sessions are in /tmp/tmux-0/.
no sessionsYou ran tmux attach and there is nothing to attach to.tmux new, or tmux new -A -s main (attach if it exists, create if not).
failed to connect to serverThe same as "no server running", from tmux 2.0 and older.As above.

The server might be running somewhere else. The number in /tmp/tmux-1000 is your user ID (id -u). A server started with -L name uses /tmp/tmux-1000/name, one started with -S path uses that path, and $TMUX_TMPDIR moves the whole directory. Look for servers and sockets:

shell
pgrep -a tmux                     # is any tmux server process alive?
ls -l /tmp/tmux-$(id -u)/         # which sockets exist?
tmux -L work ls                   # list a server started with -L work

Sessions never survive a reboot by themselves. To bring layouts back after a restart, use tmux-resurrect and tmux-continuum.

"server exited unexpectedly" or "lost server"

Quick answer

Why does tmux say server exited unexpectedly?

Most often the tmux command you ran is a different version from the server that is already running, typically right after an upgrade or when two tmux binaries are installed. The server is usually still fine. Talk to it with the binary that started it, or restart it when you can.

Real screenshot · tmux 3.8A tmux 3.4 client against a running 3.8 server: every command fails with 'server exited unexpectedly', but the sessions are still there.
A tmux 3.4 client against a running 3.8 server: every command fails with 'server exited unexpectedly', but the sessions are still there.
How this was captured

Captured 2026-10-28 17:54 UTC from a real xterm window running tmux 3.8 on Ubuntu 24.04. Nothing is mocked up. The commands that set up the screen:

tmux new-session -d -s work -x 90 -y 11
tmux send-keys -t work 'clear; tmux -V; tmux display -p '"'"'#{version}'"'"'; tmux ls' Enter

We tested both directions: a 3.4 client cannot talk to a 3.8 server, while a 3.8 client could still list and attach to a 3.4 server. Find out which binary the running server uses, and use that one:

shell
tmux -V                                  # the client you are running
pgrep -a tmux                            # the server process and its PID
ls -l /proc/$(pgrep -o -x tmux)/exe      # Linux: the server's binary
/proc/$(pgrep -o -x tmux)/exe attach     # attach with the server's own binary
Real screenshot · tmux 3.4After an upgrade: tmux -V reports the new client, #{version} shows the old server still running.
After an upgrade: tmux -V reports the new client, #{version} shows the old server still running.
How this was captured

Captured 2026-10-28 18:02 UTC from a real xterm window running tmux 3.4 on Ubuntu 24.04. Nothing is mocked up. The commands that set up the screen:

tmux new-session -d -s work -x 90 -y 11
tmux send-keys -t work 'clear; tmux -V; tmux display -p '"'"'server: #{version}'"'"'' Enter

When you are ready to move to the new version, save what you need, run tmux kill-server with the old binary, and start again. If the server really crashed (no tmux process left), the sessions are gone; restart tmux, and if it keeps crashing, run tmux -vv new to write tmux-server-*.log files and report it at github.com/tmux/tmux/issues. lost server is the same message from tmux 3.0 and older (it was renamed in 3.0a), and protocol version mismatch (client …, server …) means the client and server are too far apart to talk at all.

[exited] after leaving tmux is not an error: the last shell in the last session ended, so the server stopped. [detached (from session main)] means you or another client detached. How to upgrade tmux safely →

"sessions should be nested with care, unset $TMUX to force"

Quick answer

How do I fix sessions should be nested with care?

You ran tmux or tmux attach inside a tmux pane. Usually you wanted to switch, not nest: use tmux switch-client -t other, or pick a session with Ctrl+b s. If you really want tmux inside tmux, clear the variable for that one command: TMUX= tmux new -s inner.

Real screenshot · tmux 3.8The real message when you start tmux inside a tmux pane (tmux 3.8).
The real message when you start tmux inside a tmux pane (tmux 3.8).
How this was captured

Captured 2026-10-28 17:54 UTC from a real xterm window running tmux 3.8 on Ubuntu 24.04. Nothing is mocked up. The commands that set up the screen:

tmux new-session -d -s work -x 90 -y 11
tmux send-keys -t work 'clear; tmux new -s other' Enter

Nesting is normal when you SSH from a local tmux into a server that also runs tmux. Every key goes to the outer tmux first. Press the prefix twice to send it to the inner one: Ctrl+b Ctrl+b then the key (for example Ctrl+b Ctrl+b c opens a window in the inner session). With another prefix, bind it the same way:

~/.tmux.conf
# If your prefix is Ctrl+a: press Ctrl+a twice to reach the inner tmux
bind C-a send-prefix

A common setup is a different prefix on the server (Ctrl+a outside, Ctrl+b inside), or a key that turns the outer tmux off while you work in the inner one. More on nested sessions →

"open terminal failed: not a terminal"

Quick answer

Why does tmux say open terminal failed: not a terminal?

tmux tried to attach a client, but its standard input is not a terminal: it was started from a script, cron, a pipe, an IDE task, ssh host tmux attach without -t, or docker exec without -it. Give it a terminal, or start the session detached:

shell
ssh -t server tmux new -A -s main       # -t allocates a terminal
docker exec -it box tmux attach
tmux new -d -s job 'long-command'       # from scripts and cron: never attach

We reproduced it on tmux 3.8 with echo | tmux new and tmux new </dev/null; both fail with this message, while tmux new -d works with no terminal at all. Scripts should create sessions with -d and drive them with send-keys: see scripting tmux.

"missing or unsuitable terminal: xterm-ghostty" (or xterm-kitty, alacritty)

Quick answer

How do I fix missing or unsuitable terminal?

The machine running tmux has no terminfo entry for your terminal's $TERM. This happens on remote servers when you SSH in from Ghostty, kitty, Alacritty or WezTerm. Copy the entry to the server once:

shell
infocmp -x xterm-ghostty | ssh server -- tic -x -

Or, as a quick workaround, connect with a TERM the server knows: TERM=xterm-256color ssh server.

tmux checks the terminal when a client attaches, so tmux new -d still works and only attaching fails; we confirmed both on tmux 3.8 with TERM=xterm-ghostty on a machine without that entry. Replace xterm-ghostty with whatever echo $TERM prints on your local machine. Ghostty and tmux: terminfo, true color and clipboard →

ECONNRESET in a tmux pane (Claude Code, npm, Node tools)

Quick answer

Does tmux cause ECONNRESET?

No. ECONNRESET ("connection reset by peer") is a network error from the program running inside the pane, most often a Node.js tool such as Claude Code (API Error: Connection dropped (ECONNRESET)), npm or a dev server. tmux never prints it: the string does not appear in tmux's source code, and tmux reports its own connection problems as error connecting to … or server exited unexpectedly.

tmux can still be part of the story, in two ways:

  • Long-lived, idle connections. Programs in a detached tmux session keep running for hours or days, so their open connections sit idle. Routers, NAT, VPNs and proxies drop idle connections, and the program sees a reset the next time it uses one. Retry, or restart the program. Reports in Claude Code's issue tracker describe this pattern after idle periods and on some networks, unrelated to tmux (for example issue 98032, where one reporter's sessions happened to run in tmux, and issue 28557, where an MTU problem was found).
  • An old environment. Every pane inherits the environment the tmux server had when it started. If you later connected a VPN or set HTTPS_PROXY in a new shell, panes in the old server do not have it. Compare tmux show-environment -g | grep -i proxy with env | grep -i proxy in a plain terminal, and set what is missing with tmux setenv -g HTTPS_PROXY http://proxy:3128 (new panes only).

If your SSH connection itself drops (the client prints Connection reset by peer or client_loop: send disconnect), the tmux session on the server keeps running. Reconnect and run tmux attach. Add ServerAliveInterval 30 to ~/.ssh/config to stop idle SSH connections being cut. Running Claude Code in tmux →

tmux frozen, stuck or not responding

Quick answer

My tmux pane is frozen. What do I press?

Press Ctrl+q first. A frozen pane is almost always Ctrl+s (XOFF flow control), which pauses the terminal output; Ctrl+q resumes it. We confirmed this in a tmux 3.8 pane: a counter stopped after Ctrl+s and continued after Ctrl+q.

Turn flow control off so it cannot happen again:

~/.bashrc or ~/.zshrc
# Disable terminal flow control (Ctrl+s freeze)
stty -ixon

If Ctrl+q does not help, check these, in this order:

What you seeCauseFix
Output stopped, a position like [0/1234] top rightThe pane is in copy mode (you scrolled with the wheel or pressed Ctrl+b [). The program keeps running; the view is paused.Press q. In 3.8, r refreshes copy mode.
(jump forward) prompt in the status lineYou pressed f in copy mode, which waits for a character to jump to.Press Escape, then q.
Typing appears in every panesynchronize-panes is on.tmux setw synchronize-panes off
Nothing you type does anything, display still updatesAttached read-only (attach -r), or a key binding is waiting (after the prefix, or in a key table).Press Escape; reattach without -r.
Window shows dots or does not resizeAnother, smaller client is attached to the same session.Ctrl+b D to pick a client and detach it, or attach with tmux attach -d.
The program in the pane hangsNot tmux. The program itself is stuck.Ctrl+c, or kill the pane with Ctrl+b x.
Every pane and the status bar are frozenThe tmux server or the SSH link is stuck.From another terminal: tmux ls. If it hangs too, tmux kill-server (or pkill -x tmux). For a dead SSH link, press Enter ~ . and reconnect.

tmux slow? The usual culprits are a status line that runs heavy #(…) shell commands every second (raise status-interval), a huge history-limit on many panes, or programs printing megabytes of output. Plain tmux adds no noticeable delay to typing in 3.5 and newer.

Delay after pressing Escape in Vim or Neovim

Quick answer

How do I remove the Escape delay in tmux?

Set escape-time to 10 milliseconds, which is already the default since tmux 3.5:

~/.tmux.conf
set -sg escape-time 10

tmux waits after an Escape to see whether it starts a longer key sequence such as an arrow or Alt key. Before 3.5 it waited 500 ms, which is the half-second lag Vim users notice. If you still see it, you are on an older tmux (Ubuntu 22.04 ships 3.2a; 24.04 ships 3.4) or a config sets a larger value: check with tmux show -s escape-time. Avoid 0 over slow SSH links, where Alt keys can arrive split and be read as Escape plus a letter. Neovim's :checkhealth reports the value too. Neovim and tmux →

Pasting large text is slow, or a paste runs key bindings

When you paste into a terminal, the text arrives as very fast "typing". tmux treats keys that arrive less than assume-paste-time apart (default 1 ms) as a paste and does not run key bindings for them, so a pasted Ctrl+b character does not trigger tmux. If your terminal delivers a paste in chunks, increase it:

~/.tmux.conf
set -g assume-paste-time 5

Programs that turn on bracketed paste (shells, Vim, Neovim) receive pasted text wrapped in ESC[200~ … ESC[201~, and tmux passes that through. If you see ^[[200~ printed literally, the program in the pane does not support bracketed paste. To paste a tmux buffer with those markers, use paste-buffer -p. A slow paste of a very large block is usually the program processing it (for example a shell's syntax highlighter or an editor's autoindent), not tmux.

Ctrl+b (the prefix) not working, or a new prefix not working

Quick answer

Why does Ctrl+b do nothing in tmux?

Check what tmux thinks the prefix is: tmux show -g prefix. Your config (or Oh my tmux, which adds Ctrl+a) may have changed it. If it says C-b, something outside tmux is taking the key: VS Code's terminal, a browser-based terminal, or a window manager shortcut.

To change the prefix properly, unbind the old one, set the new one, and bind it to send-prefix so you can still send it to programs (and to a nested tmux) by pressing it twice:

~/.tmux.conf
unbind C-b
set -g prefix C-a
bind C-a send-prefix

A changed prefix only applies after the config is reloaded (see below). Commands "not working" after the prefix usually means you held Ctrl down for the second key: press the prefix, release, then press the key. Key binding reference →

Washed-out colors: fix true color (24-bit RGB) in tmux

Quick answer

Why are colors wrong inside tmux?

tmux only sends 24-bit color to your terminal when it knows the terminal supports it; otherwise it maps every color to the nearest of 256, and themes look washed out. Tell tmux your terminal supports RGB:

~/.tmux.conf
set -g default-terminal "tmux-256color"
set -as terminal-features ",xterm*:RGB"

Then restart the server (tmux kill-server): terminal features are read when a client attaches. Check what tmux detected, from inside tmux, with tmux info | grep -E "RGB|Tc"; RGB: [missing] means it is still off. tmux 3.6 and newer also turn RGB on by themselves when COLORTERM=truecolor is set. If your terminal's $TERM is not xterm-… (for example alacritty or xterm-kitty), use that name in the pattern. On tmux older than 3.2, use set -as terminal-overrides ",xterm*:Tc". True color in the config reference →

tmux-256color, screen-256color and TERM compatibility

Inside tmux, $TERM should be tmux-256color (the default) or screen-256color, never xterm-256color: tmux is not xterm, and programs that think it is send sequences tmux handles differently. tmux-256color adds italics and other capabilities that screen-256color lacks.

SymptomFix
'tmux-256color': unknown terminal type in programs, or on a remote host you SSH to from inside tmuxThat machine has no tmux-256color terminfo entry (older macOS, minimal containers). Check with infocmp tmux-256color. Install a newer ncurses terminfo, copy the entry with infocmp -x tmux-256color | ssh host -- tic -x -, or fall back to set -g default-terminal "screen-256color".
Italics show as reverse videoYou are using screen-256color. Switch to tmux-256color.
Home/End or function keys wrong in one programA shell profile is forcing TERM=xterm-256color inside tmux. Remove that line.

Missing undercurls and colored underlines in Neovim

Undercurls (the squiggly lines under LSP errors) and colored underlines need the Smulx and Setulc capabilities. tmux uses them only if it knows the outer terminal supports them. On tmux 3.2 and newer, one line enables both:

~/.tmux.conf
# tmux 3.2+: undercurl and colored underlines
set -as terminal-features ",xterm*:usstyle"
# Older tmux:
# set -as terminal-overrides ',*:Smulx=\E[4::%p1%dm'
# set -as terminal-overrides ',*:Setulc=\E[58::2::%p1%{65536}%/%d::%p1%{256}%/%{255}%&%d::%p1%{255}%&%d%;m'

Restart the server afterwards, and use a terminal that supports undercurl (Ghostty, kitty, WezTerm, iTerm2, recent Alacritty and foot all do). Full Neovim and tmux setup →

Borders drawn as "qqqq" or "xxxx", broken Unicode and emoji

tmux decides whether your terminal can show UTF-8 from LC_ALL, LC_CTYPE and LANG (the first one that is set). If none says UTF-8, common on fresh servers and in Docker, tmux falls back to line-drawing codes that some terminals show as letters, and replaces wide characters with _. Fix the locale:

~/.bashrc or ~/.zshrc
export LANG=en_US.UTF-8          # or C.UTF-8 on minimal systems
# Workaround: force UTF-8 output whatever the locale says
alias tmux="tmux -u"

Restart the server after changing the locale, because it keeps the one it started with. tmux 3.8 also adds a utf8 terminal feature you can set for a terminal type, for example set -as terminal-features ",xterm*:utf8". Emoji and CJK characters that take two cells can still misalign if your terminal and tmux disagree about their width; using the same, current Unicode version on both sides (a recent terminal and tmux 3.4 or newer) fixes most cases. Cursor disappeared? A program exited without showing it again: run tput cnorm, or reset.

Can't scroll up in tmux, or the mouse wheel doesn't scroll

Quick answer

How do I scroll up in tmux?

Press Ctrl+b [ to enter copy mode, scroll with the arrows, PgUp or the wheel, and press q to leave. tmux 3.8 turns the mouse on by default, so the wheel works out of the box; on older versions add the line below.

~/.tmux.conf
set -g mouse on      # needed on tmux 3.7 and older

tmux draws the whole screen itself, so your terminal's scroll bar only sees tmux's current screen, not each pane's history. If the wheel still does not scroll in 3.8, check tmux show -g mouse (a config may set it off), and note that in full-screen programs such as less, vim or htop the wheel goes to the program, by design. Keep more history with set -g history-limit 50000 (default 2000 lines). Scrolling, searching and copying →

Can't select text normally with the mouse

With the mouse on, tmux takes over clicks and drags, so a drag selects inside one pane and copies to a tmux buffer. To use your terminal's own selection instead, hold a modifier while you drag:

  • Most terminals (GNOME Terminal, Konsole, Windows Terminal, Alacritty, kitty, WezTerm, Ghostty): hold Shift.
  • iTerm2: hold Option. macOS Terminal.app: hold Fn.

Or let tmux's own selection reach the system clipboard, which is the better fix: mouse selection in copy mode.

Copy doesn't reach the system clipboard (macOS, Linux, SSH)

Quick answer

How do I copy from tmux to the system clipboard?

The simplest fix that also works over SSH is OSC 52: tmux sends the copied text to your terminal, which puts it on the clipboard. It is on by default in tmux 3.8 for terminals that support it. Otherwise pipe the selection to your clipboard tool:

~/.tmux.conf
setw -g mode-keys vi
bind -T copy-mode-vi y send -X copy-pipe-and-cancel "pbcopy"   # macOS
# Linux: "wl-copy" (Wayland) or "xclip -in -selection clipboard" (X11)
bind -T copy-mode-vi MouseDragEnd1Pane send -X copy-pipe-and-cancel "pbcopy"

If OSC 52 does not work, your terminal may need it enabled (iTerm2: "Applications in terminal may access clipboard"). The tmux-yank plugin picks the right tool for each OS. Full explanation, with every terminal: tmux and the system clipboard.

tmux config changes not applying

Quick answer

I edited ~/.tmux.conf and nothing changed. Why?

The tmux server reads the config only when it starts, and it keeps running after you close your terminal. Reload it into the running server:

shell
tmux source-file ~/.tmux.conf
# or inside tmux: prefix + :  then  source-file ~/.tmux.conf

Add a reload key so it is one keystroke next time:

~/.tmux.conf
bind r source-file ~/.tmux.conf \; display "Config reloaded"

Still not applying? Work through these:

  • Two config files. tmux 3.4 and 3.8 load every file that exists: /etc/tmux.conf, then ~/.tmux.conf, then ~/.config/tmux/tmux.conf. A setting in the later file wins. We tested this on both versions. See which files the server read with tmux display -p '#{config_files}'.
  • A line has an error. tmux skips it and reports the file and line, like ~/.tmux.conf:12: invalid option: … (we tested this on 3.8: the lines after it still load). It is often an option that was renamed or is newer than your tmux. Run tmux source ~/.tmux.conf in a shell to see the messages.
  • Reloading does not undo. Deleting a line and reloading leaves the old value set. Unset it (set -gu option, unbind key) or restart with tmux kill-server.
  • Some things apply only to new panes or clients: default-terminal, default-command, environment variables and terminal features.
  • Check the live value: tmux show -g status-style, or tmux show -gA for everything including inherited values.

Config file locations and reloading →

SSH agent forwarding broken after you reattach

You detach, reconnect over SSH and reattach, and now git push fails with Permission denied (publickey). Each new SSH login creates a new agent socket, but shells already running in tmux still point at the old $SSH_AUTH_SOCK. tmux's update-environment option copies the new value into the session when you attach, but only programs started afterwards see it.

The robust fix is a fixed path that every login refreshes, and telling tmux to always use that path:

~/.ssh/rc on the server
# Point a fixed path at the current agent socket on every SSH login
if test "$SSH_AUTH_SOCK" ; then
  ln -sf "$SSH_AUTH_SOCK" ~/.ssh/ssh_auth_sock
fi
~/.tmux.conf
# tmux 3.8 default list minus SSH_AUTH_SOCK, so attach does not override the symlink
set -g update-environment "DISPLAY KRB5CCNAME MSYSTEM SSH_ASKPASS SSH_AGENT_PID SSH_CONNECTION WAYLAND_DISPLAY WINDOWID XAUTHORITY XDG_CURRENT_DESKTOP XDG_SESSION_DESKTOP XDG_SESSION_TYPE"
setenv -g SSH_AUTH_SOCK $HOME/.ssh/ssh_auth_sock

We tested this on tmux 3.8: started with SSH_AUTH_SOCK=/tmp/agent.123, a new pane saw ~/.ssh/ssh_auth_sock; without the config it saw the stale path. Removing SSH_AUTH_SOCK from update-environment is essential, otherwise tmux overwrites the symlink on every attach. On tmux 3.4 the default list is shorter (no MSYSTEM, WAYLAND_DISPLAY or XDG_*); check yours with tmux show -g update-environment. Shells that are already running need export SSH_AUTH_SOCK=~/.ssh/ssh_auth_sock once.

Commands not found only inside tmux ($PATH issues)

npm, nvm, pyenv or Homebrew tools work in a plain terminal but not in tmux. tmux starts each pane as a login shell, so your profile files run again; on macOS, /etc/zprofile runs path_helper, which reorders $PATH and can push version-manager paths behind the system ones. Start panes as ordinary interactive shells that inherit the $PATH of the terminal that started tmux:

~/.tmux.conf
set -g default-command "${SHELL}"

Then restart the server with tmux kill-server, because existing panes and the server keep their old environment. The cleaner long-term fix is to set PATH in the file your shell reads for every interactive shell (~/.zshrc or ~/.bashrc), not only in a login profile.

FAQ

Why are colors wrong or truecolor not working in tmux?

tmux does not know your terminal supports 24-bit color, so it maps colors to 256. Add set -g default-terminal "tmux-256color" and set -as terminal-features ",xterm*:RGB" to ~/.tmux.conf, run tmux kill-server, and start tmux again. tmux info | grep RGB should no longer say missing.

Why is there a delay when pressing Escape in Neovim/Vim inside tmux?

tmux waits after Escape to see if it starts a key sequence. Older tmux waited 500 ms; since 3.5 the default is 10 ms. On older versions, or if your config sets more, add set -sg escape-time 10 and reload.

How do I fix copy-paste to system clipboard in tmux?

Use a terminal that supports OSC 52 (tmux 3.8 sends it by default), or bind y in copy mode to copy-pipe-and-cancel "pbcopy" on macOS, "wl-copy" on Wayland or "xclip -in -selection clipboard" on X11. tmux-yank does this for you. Details are in the clipboard guide.

Why did my tmux session disappear?

The tmux server stopped: the machine rebooted, the last pane exited, someone ran tmux kill-server, or (on some Linux systems) systemd killed your processes when you logged out. Run tmux ls; "no server running" or "error connecting … (No such file or directory)" confirms it. Use tmux-resurrect and tmux-continuum to restore layouts after a reboot.

How do I fix tmux: command not found?

Install tmux with your package manager (sudo apt install tmux, brew install tmux, sudo dnf install tmux) and check with tmux -V. On Windows, install it inside WSL.

What does ECONNRESET mean when I use tmux?

It comes from a program inside the pane, usually a Node.js tool such as Claude Code or npm, whose network connection was reset. tmux never prints it. Retry or restart the program; if it started after a long idle period or a network change, check proxy variables with tmux show-environment -g.

Next steps

Keep learning

Something wrong or out of date on this page? Email hello@tmux.app and we will fix it.