Back to Claude Scientific Skills

tmux Setup

skills/pi-agent/references/tmux.md

2.47.0758 B
Original Source

tmux Setup

Source: https://pi.dev/docs/latest/tmux

tmux strips modifier information from some keys by default. Without configuration, Shift+Enter and Ctrl+Enter are often indistinguishable from Enter.

For tmux 3.5+:

tmux
set -g extended-keys on
set -g extended-keys-format csi-u

Restart tmux fully:

bash
tmux kill-server
tmux

With tmux 3.2 through 3.4, omit extended-keys-format csi-u; Pi still supports tmux's default xterm modifyOtherKeys format.

What It Fixes

With CSI-u forwarding, modified Enter keys arrive distinctly:

  • Enter:
  • Shift+Enter: 
  • Ctrl+Enter: 
  • Alt/Option+Enter: 

This affects default Enter submit, Shift+Enter newline, and custom keybindings.