Skip to content
BENIBIX Learn

CLAUDE_CODE_DISABLE_ALTERNATE_SCREEN

AI⌨️ Claude CodeConfiguration

Also known as CLAUDE_CODE_DISABLE_ALTERNATE_SCREEN=1

Set to 1, it keeps the classic mode, with the terminal's own scroll.

Think of it like

It is like you keep writing on the paper roll. You can roll back.

Example

Jack copies output with tmux copy mode all day. Fullscreen broke that. He sets this, and copy mode works again.

Why it matters

Some people rely on their terminal's own search and copy. Classic mode keeps those.

Definition

CLAUDE_CODE_DISABLE_ALTERNATE_SCREEN set to 1 turns fullscreen off. Claude Code uses the classic mode. The chat stays in your terminal's own history, so Cmd+F and tmux copy work as usual. It wins over NO_FLICKER and the tui setting. Agent view still uses fullscreen.

Example code

bash
export CLAUDE_CODE_DISABLE_ALTERNATE_SCREEN=1
claude
Keep the chat in your scrollback.
This switch picks the left-hand screen, and wins.

Common mistake

Setting both switches and expecting fullscreen. This one wins.

Key takeaways

  1. 1
    Classic mode. Set 1.
  2. 2
    Wins over NO_FLICKER. And the setting.
  3. 3
    Agent view. Still fullscreen.

Compare