# CLAUDE_CODE_DISABLE_ALTERNATE_SCREEN

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

**Field:** Artificial Intelligence  
**Category:** Claude Code  
**Also known as:** CLAUDE_CODE_DISABLE_ALTERNATE_SCREEN=1

## Think of it like

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

## 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

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

## Example code

```bash
export CLAUDE_CODE_DISABLE_ALTERNATE_SCREEN=1
claude
```

Keep the chat in your scrollback.

## Why it matters

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

## Common mistake

Setting both switches and expecting fullscreen. This one wins.

## Three principles

- **Classic mode.** Set 1.
- **Wins over NO_FLICKER.** And the setting.
- **Agent view.** Still fullscreen.

## Related terms

- [CLAUDE_CODE_NO_FLICKER](https://learn.benibix.com/term/ai/claude-code-no-flicker-variable)
- [/tui Command](https://learn.benibix.com/term/ai/tui-command)
- [--tmux Flag](https://learn.benibix.com/term/ai/tmux-flag)

## Told apart from

- [CLAUDE_CODE_NO_FLICKER vs CLAUDE_CODE_DISABLE_ALTERNATE_SCREEN](https://learn.benibix.com/compare/claude-code-no-flicker-variable-vs-claude-code-disable-alternate-screen-variable): People think these two do the same thing, since both are about the screen. They do the opposite. NO_FLICKER turns fullscreen mode on. DISABLE_ALTERNATE_SCREEN turns it off. It keeps the chat in your terminal's own history. If both are set, the second wins.

![NO_FLICKER turns fullscreen on. DISABLE_ALTERNATE_SCREEN turns it off, and wins if both are set.](https://learn.benibix.com/diagrams/env-fullscreen-switch.svg)

---

Source: https://learn.benibix.com/term/ai/claude-code-disable-alternate-screen-variable
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-17
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
