the map window
The 21 rows of the map as the terminal lays them out.
Builtneeds review1 change builtSeen all the timeLast touched November 15, 2026: a change of its own was written or changed. Commit ab9a6ad6f.
In the terminal
Rows 1-21 of the terminal, columns 1-79 (column 0 unused). The tty draws each glyph's character in its color; the cursor sits on the hero after every update (curs_on_u). A cleared map window means a new level or a full redraw (^R). Clipping (cliparound) only matters on terminals smaller than the map. The lens kind holds Codex's other ways of looking.
In Codex
When the game redraws the same level, the world stays as it is and the camera does not cut.
Builtneeds reviewTransition
Details
The core clears the map for a new level and also for redraws of the same one: ^R, gold, food, object and one-shot monster detection and their browse, trap detection, a trap found under an object (or any while hallucinating), #terrain, being engulfed and expelled, under water, buried. nh-state decides which it is at the core's next request (N-96): a new level when the status line's level text changed, or the walls drawn contradict the walls shown before, or the hero was moved more than one square onto a map that is not this level's (he was drawn before the clear, the map before it was not the inside of an engulfer and showed the level's walls, and the map now shows fewer than half of them: how wizard mode's #wizloaddes shows); otherwise a redraw (Moment::Redrawn), including a teleport out of an engulfer or inside one. A redraw rebuilds nothing and never cuts the camera: only the squares that changed are drawn again, tracks and gestures go on, and the terrain last shown under the hero and monsters on this level stays there (the core sends this port none), even across clears in a row (a detection's browse, then the redraw; engulfed, then expelled), so ^R on a staircase keeps the flight under the hero and a pet on an altar keeps the altar. What the map shows meanwhile is what the terminal shows: during a detection's browse only what was detected, then the level again.
- Id
codex.same_level_redraw- Exact state
- Built, not reviewed
- Playtests
journey-game- Code
crates/nh-state/src/lib.rs,crates/nh-state/src/level.rs,crates/nh-moments/src/lib.rs,crates/codex-client/src/draw/world.rs
| N-96 | Done | Truthful readings |
Accepted pictures and playtests
Playtests: journey-game
