messages

The game's words. One line at the top of the terminal, with --More-- when it fills.

The terminal shows this in words, not as a letter.
Terminal
messages in Codex, close third person
Codex: close third person

Builtneeds review1 change builtSeen all the timeLast touched November 17, 2026: a change of its own was written or changed. Commit 281d00338.

In the terminal

The top line: one message after another, --More-- when the next won't fit, ^P to recall them; the terminal's bell for some refusals.

Decisions

Message options, raw messages and the bell stay as the terminal has them for now.

Left as the terminal shows it
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 (messages): "Keep them as the terminal shows them for now".

Backlog decisions: D-131

In Codex

^P shows earlier messages again, one further back each time, as the terminal does.

Builtneeds reviewCamera or view

^P shows earlier messages again, one further back each time, as the terminal does.
Details

^P as the tty does it (topl.c), kept by the port in the tty's unit, the top line: the messages put to the message window between two keys share one line, two blanks apart, while they fit in 80 columns less the 8 for --More-- ("You hit the jackal. The jackal bites!"), and "You die..." starts its own (update_topl); a key, a question or a window shown ends the line. The last msghistory top lines are kept (20 at least), except the messages the core marks ATR_NOHISTORY ("Unknown command", the running count); besides, each on a line of its own, what the core hands to putmsghistory (an answered getobj prompt with force_invmenu, a count, a quest text's summary) and each answered question with its answer, worded as the tty's top line keeps it ("Really attack the jackal? [yn] (n) y", "Create what kind of monster? jackal"). Under msg_window:s, the tty's default and the only way on the Linux and macOS builds, each ^P shows the next older top line alone on the message line, dimmer than a new one (earlier_message_brightness), the newest first and around again after the oldest; the next key puts it away and a new message starts over. Under f, r and c (settable on Windows) the tty's "Message History" window opens. It is never a new message (protocol 5's EarlierMessage), so nothing replays it as an attack or a kill. The save takes the history and a restore brings it back before the new session's messages (the save format already had room for it); the F2 view's top line shows it too, and a watcher sees it. Inside a question and a typed line ^P does the same and then asks again (N-129; tty_yn_function, hooked_tty_getlin): at a question the earlier message stands alone on the message line, the question gone, and the key after it only brings the question back, as the tty's does; in a typed line what was typed stays and the next key goes on typing. At --More-- the tty beeps at ^P (xwaitforspace), and Codex does nothing.

Id
codex.previous_messages
Exact state
Built, not reviewed
Playtests
journey-continuity
Settings
messages.earlier_message_brightness
Code
crates/nh-host/csrc/codex_history.c, crates/nh-host/csrc/codex_winport.c, crates/nh-state/src/answer.rs, crates/nh-state/src/lib.rs, crates/codex-client/src/hud.rs
N-4DonePrevious messages (^P) and a message log view (doprev_message is a stub).
N-95Done^P and the status highlights
N-129Built, not reviewed^P inside a question, a typed line and --More--
Applies to everything on the map (2)
  • Messages sit in the top left, one per line, older ones dimmed above this turn's bright ones.
  • The game's questions appear in gold under the messages, worded as the terminal words them.

Accepted pictures and playtests

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

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

Playtests: journey-continuity

Planned and proposed

Idea Each message types out quickly, the way a terminal prints it.

Idea While the game waits at --More--, its marker pulses slowly.

Idea Messages in the margin beside the map, the newest emphasized, and --More-- a page turn.

Planned Control-P shows earlier messages inside a question or a typed line, as the terminal does.

Idea Hallucinating, a color word is drawn in itself and each message opens with an animated initial.

Details for builders

Id: messages. Lexicon subjects: chrome.messages.

Design notes from NetHack

One line of messages, two spaces apart, with a --More-- pause when the next will not fit.

The tty stops at --More-- until space, Return or ESC; ESC also skips the rest of the turn's messages.

Backlog rows

N-4DonePrevious messages (^P) and a message log view (doprev_message is a stub).
N-95Done^P and the status highlights
N-129Built, not reviewed^P inside a question, a typed line and --More--
N-475DroppedThe message line trips, legibly