Insert a newline and exit the CLI cleanly

interface & shortcuts

// what it does

Shift+Enter inserts a newline instead of submitting in most terminals; Ctrl+J (or Ctrl+Enter) is the universal fallback that works everywhere, including tmux. ArrowUp cycles through your previous messages. To leave the CLI, press Ctrl+D twice, matching standard shell behavior. /setup-terminal configures these newline keybindings if they misbehave.

// shortcut

Shift+Enter
Ctrl+J
Ctrl+D

// shell

$ /setup-terminal

// gotcha

In tmux and some terminals Shift+Enter submits instead of adding a newline — use Ctrl+J there, or run /setup-terminal to fix the binding.

// resources