diff --git a/tmux/tmux.conf b/tmux/tmux.conf index 0662e00..0e46b7a 100644 --- a/tmux/tmux.conf +++ b/tmux/tmux.conf @@ -30,7 +30,7 @@ set-option -sa terminal-overrides ',st-256color:RGB' set -g renumber-windows on # set-window-option -g aggressive-resize on set-window-option -g xterm-keys on -set-option -g focus-events +set-option -g focus-events on set-option -sa terminal-overrides ',foot:RGB' # foot @@ -183,3 +183,28 @@ set-window-option -g window-status-format "#[fg=$COL_BG_DARK,bg=$COL_BG_VERY_DAR set -g pane-active-border-style bg=default,fg=color240 set -g pane-border-style fg=color240 + +# --------------------------------------------------------------------------- +# Claude Code / modern TUI support +# --------------------------------------------------------------------------- +# CSI-u extended keys: lets Shift+Enter, Ctrl+Enter, Alt+Enter reach the app +# (Claude Code uses these for multiline input) instead of collapsing to CR. +set -s extended-keys on +set -as terminal-features 'xterm*:extkeys' +set -as terminal-features 'foot*:extkeys' +set -as terminal-features 'tmux-256color:extkeys' + +# Let inner apps talk directly to the outer terminal: inline image protocols +# (Kitty/iTerm graphics), OSC 8 hyperlinks, OSC 777 notifications. +set -g allow-passthrough on + +# OSC 52: allow tmux itself to push copies to the system clipboard, not only +# forward sequences the app emits. +set -s set-clipboard on + +# Hyperlink + notification passthrough for the terminals in use here. +set -as terminal-features 'foot*:hyperlinks' +set -as terminal-features 'xterm*:hyperlinks' + +# Bigger scrollback for long agent sessions. +set -g history-limit 200000