Docs basics

Keybindings

teru uses a prefix key system for multiplexer commands. The default prefix is Ctrl+Space. Press the prefix, release, then press a command key.

Prefix Commands

All prefix commands require pressing Ctrl+Space first (or your configured prefix key), then the command key.

Prefix + KeyAction
cSpawn new pane
xClose active pane
nFocus next pane
pFocus previous pane
SpaceCycle layout (master-stack → grid → monocle → floating)
zToggle zoom — expand active pane to monocle, restore on second press
HDecrease master ratio in master-stack layout
LIncrease master ratio in master-stack layout
19Switch to workspace 1–9
/Search in terminal output
dDetach — save session layout and exit

Direct Keys

These keys work without the prefix:

KeyAction
Shift+PageUpScroll up one page in scrollback
Shift+PageDownScroll down one page in scrollback
Any keyExit scroll mode
Ctrl+ClickOpen URL under cursor (via xdg-open)

Pane Resize

When in master-stack layout, resize the master pane ratio:

Prefix + KeyAction
HShrink master pane (decrease ratio, min 15%)
LGrow master pane (increase ratio, max 85%)

Search Mode

Press Ctrl+Space, / to enter search mode:

  • Type to filter — matches highlight in the visible grid
  • Press Enter or Escape to exit search mode
  • Search operates on the visible terminal output

Layout Reference

Cycle layouts with Ctrl+Space, Space:

LayoutDescription
master-stackOne large pane on the left, remaining panes stacked on the right
gridEqual-size grid, automatically adjusts columns/rows as panes are added
monocleSingle full-screen pane; cycle through panes with n/p
floatingFree placement — panes keep their last position

Workspace System

9 independent workspaces, each with their own pane set and layout. Use Ctrl+Space, 19 to switch.

  • Panes in one workspace are invisible in others
  • Each workspace remembers its layout independently
  • AI agent teams are automatically assigned to dedicated workspaces when using the Claude Code integration

Configuring the Prefix Key

The default prefix Ctrl+Space can be changed in ~/.config/teru/teru.conf:

# Use Ctrl+B (tmux-compatible)
prefix_key = ctrl+b

# Use Ctrl+A (screen-compatible)
prefix_key = ctrl+a

Accepted values: ctrl+a through ctrl+z, ctrl+space, or a raw integer keycode.

VT Passthrough

All standard terminal keys pass through to the running program. teru only intercepts:

  • The prefix key sequence
  • Shift+PageUp / Shift+PageDown
  • Ctrl+Click on URLs

Everything else goes directly to your shell or application.