# tmux for the opencode web terminal (ttyd). Kept minimal: opencode is the whole UI. set -g default-terminal "tmux-256color" # ttyd's xterm.js does 24-bit colour; let opencode's truecolor through. set -ga terminal-overrides ",xterm-256color:RGB" # Esc reaches opencode at once (tmux's default 500 ms delay makes it feel stuck). set -sg escape-time 0 set -g focus-events on # The window follows the most recently active browser tab's size. set -g window-size latest setw -g aggressive-resize on # Mouse events go to opencode (it asks for them), not to tmux. set -g mouse off set -g history-limit 10000 # One status line saying what this is and how to leave without ending the session. set -g status on set -g status-style "bg=colour236,fg=colour250" set -g status-left "" set -g status-right " tmux session 'opencode' ยท closing the tab keeps it running " set -g status-right-length 80 set -g window-status-format "" set -g window-status-current-format ""