menus and text windows

Inventory, options, help, the overview, discoveries, the spell menu.

The terminal shows this in words, not as a letter.
Terminal
menus and text windows in Codex, close third person
Codex: close third person

Builtneeds review1 change builtSeen all the timeLast touched November 29, 2026: a change of its own was written or changed. Commit 7b29ea1c7.

In the terminal

Letter-keyed menus and text windows over the map, paged with > and <.

Decisions

Ideas are to be planned for the game's menus and windows.

Not decided
Full text

On the page of the backlog's questions, 2026-11-17, asked whether to keep them as the terminal shows them for now (menus and windows): "Plan ideas for them".

Backlog decisions: D-131

In Codex

A text window opens as a page of eighty columns, and the world behind it dims a step.

Builtneeds reviewCamera or view

Details

N-658: a window of lines the game puts and waits on (a help file, the Oracle's words, a quest text, an encyclopedia entry, the overview, the discoveries, the chronicle, the conduct list) opens as one page instead of the centered panel: a sheet the width of the terminal's eighty columns and the height of a whole page of text with its --More-- at the foot, the same sheet for every page of a long file and a short text at its top, each line as the game broke it and never wrapped again, in the monospace HUD face so the help files keep their columns and an encyclopedia entry its quotation and its attribution in brackets. As the tty gives a text window the whole screen (wintty.c:1899, "force full-screen mode"), the world behind it dims a step (text_page_dim: to about 55% of its brightness to the eye): one dark layer over the picture, the corner map and the message and status lines together, so no letter competes with the page's, eased in over text_page_ease_seconds and out again when the page is dismissed; in every view, the map view too. Behind the page the world's own motion holds still (N-5070), as NetHack's time does while a page is up: the torch's breath and sway, the mist's drift, the water of pools and fountains, the fountain's jet and the lava ease to a stop along the same ease as the dim and ease back as it lifts (text_page_world_motion 0; 1 keeps them moving); what a key set going (a play in flight, the camera, the hero's conditions, the trip) keeps the game's clock and finishes. The lines are nh_state::terminal::panel's, so the terminal view and the goldens show the same text. Menus keep the panel; the tombstone keeps its own treatment (codex.tombstone), carved or not.

Id
codex.text_page
Exact state
Built, not reviewed
Playtests
text-page
Settings
messages.text_page_strength, messages.text_page_dim, messages.text_page_ease_seconds, messages.text_page_world_motion
Code
crates/codex-client/src/hud.rs, crates/codex-client/src/draw/world_clock.rs, crates/nh-knobs/src/messages/text_page.rs
N-658Built, not reviewedA text window is a page
N-5070Built, not reviewedA page holds the world still:
Applies to everything on the map (2)
  • Menus and text windows appear as one dark panel in the middle of the screen, paged to fit.
  • Up steps forward, down steps back, and left and right turn in place without using a game turn.

Accepted pictures and playtests

A change to how this looks is compared with these pictures before it is accepted.

  • menus and text windows in Codex, close third personclose third person
  • menus and text windows in Codex, map viewmap view
Gallery scene gallery-hud-menu, menu. Accepted November 21, 2026. Renderer: NVIDIA GeForce GTX 1660 Super.

Playtests: text-page

Planned and proposed

Idea The inventory as a page of small plates, each with its letter.

In progress In a menu the arrows page, scroll and move as a player expects.

Left to do: Scrolling a line, and what Left and Right do in a menu, are still to decide.

Planned A text window opens as one full page over the world, which dims and holds still behind it.

Details for builders

Id: windows. Lexicon subjects: chrome.windows.

Design notes from NetHack

Each line is sent with the object's glyph (class, letter, color) and its name.

Carried objects keep their inventory letters in menus and in prompts such as '[fg or ?*]'.

Full-screen text on a cleared screen, with a --More-- at each screenful; the map returns when it is dismissed.

Backlog rows

N-658Built, not reviewedA text window is a page
N-5070Built, not reviewedA page holds the world still:
N-20DoneArrow keys in menus and text windows (scroll/page) instead of turning the camera.