Files
codex/codex-rs/tui/src
7daaabc795 fix: add tui.alternate_screen config and --no-alt-screen CLI flag for Zellij scrollback (#8555)
Fixes #2558

Codex uses alternate screen mode (CSI 1049) which, per xterm spec,
doesn't support scrollback. Zellij follows this strictly, so users can't
scroll back through output.

**Changes:**
- Add `tui.alternate_screen` config: `auto` (default), `always`, `never`
- Add `--no-alt-screen` CLI flag
- Auto-detect Zellij and skip alt screen (uses existing `ZELLIJ` env var
detection)

**Usage:**
```bash
# CLI flag
codex --no-alt-screen

# Or in config.toml
[tui]
alternate_screen = "never"
```

With default `auto` mode, Zellij users get working scrollback without
any config changes.

---------

Co-authored-by: Josh McKinney <joshka@openai.com>
2026-01-09 18:38:26 +00:00
..
2026-01-09 17:31:17 +00:00
2026-01-08 11:43:56 -08:00
2026-01-08 16:23:06 -08:00
2026-01-08 16:23:06 -08:00
2026-01-09 17:31:17 +00:00
2025-09-15 00:42:53 -07:00
2025-08-05 04:23:22 +00:00
2025-12-18 10:59:53 -08:00
2025-11-17 11:49:09 -08:00
2025-12-18 10:59:53 -08:00
2026-01-08 16:23:06 -08:00
2026-01-06 18:02:05 +00:00
2025-09-30 00:10:04 +00:00