pauses and flashes
The terminal's own short pauses between the frames of a ray or a throw, and its screen flashes.
Builtneeds review2 changes builtSeen all the timeLast touched November 27, 2026: a change of its own was written or changed. Commit 6417a239e.
In the terminal
50 ms per call when the nap option is on (the default; TIMED_DELAY), else padding characters. Called after each square of a ray, missile, dig beam or boomerang, twice per explosion, 21 times per shield sparkle, and during multi-turn movement and occupations (runmode_delay_output, hack.c:2996, called before each move from allmain.c:517, after lookaround, and after it from domove_core, hack.c:2990; also for an occupation, allmain.c:509, and a helpless hero, allmain.c:381) according to runmode: "run" (default) redraws and pauses at both calls on every 7th turn (about six squares, then one), "walk" at both calls every move, "crawl" at both with five pauses each, "teleport" never (the map is shown once the movement has stopped, with no pause).
The found thing's glyph (a door, a corridor, a trap, a monster, the 'I') alternates with what was shown there, 6 times for detection finds (FOUND_FLASH_COUNT), 4 or 8 for a monster (halved without sparkle), a delay each.
About 50 ms per call (timed_delay on), so a zap or thrown dagger is seen moving; while running the map is updated every 7 steps (runmode run, the default), every step (walk, crawl with extra delays) or only at the end (teleport).
Quotes from NetHack
msleep(50); /* sleep for 50 milliseconds */
4 more quotes
like walk, but pause briefly after each step.
Briefly flash between the passed glyph and the glyph that's meant to be at the location.
#define FOUND_FLASH_COUNT 6
for normal (leap) mode, update display every 7th step
Decisions
Ideas are to be planned for the flash and the display delays.
Not decidedFull text
On the page of the backlog's questions, 2026-11-17, asked whether to keep them as the terminal shows them for now (explosions, shields and clouds, engulfing frame, cursor and position marks): "Plan ideas for them".
Backlog decisions: D-131Ideas are to be planned for the display delays in the game's windows.
Not decidedFull text
On the page of the backlog's questions, 2026-11-17, asked whether to keep them as the terminal shows them for now (display delays): "Plan ideas for them".
Backlog decisions: D-131In Codex
A thing a search finds stands steady as its cover thins away, lit warm, while the game flashes it.
Builtneeds reviewReaction to an event
Details
The game's flash, softened (N-665, D-138; the director, 2026-11-27, on the first cut: "not excellent yet - unclear what's happening"; this is the brainstorm's "the cover gives way, lit"). NetHack shows a thing a search for hidden things just found by drawing its square with the thing and with what was remembered there, in turn, with its short pause after each, the thing first (flash_glyph_at, display.c:1305-1321): a hidden door, a corridor, a trap or an unseen monster's I found by the wand of secret door detection, the spell of detect unseen, the Bell of Opening or wizard ^E (findone, detect.c:1639-1723; FOUND_FLASH_COUNT 6: twelve changes); an ordinary s never flashes. The terminal blinks it hard on and off. Here the found thing stands steady from the game's first drawing of it: the game sends a whole flash at once, so the client reads it ahead in its queue (nh-moments blink.rs ahead, by the watch's rules) and holds the square on the found thing, leaving its changes out of the frame's while the game alternates; the terminal view and the minimap hold the found thing's letter too, and the game's own state stays as the game has it. What it covered (the wall, the stone, the floor) stays as a copy of its form on a material of its own and thins to nothing in soft steps, one for each alternation the game draws, each eased over 0.04 s, never swapped back. When the game is done (0.15 s, three of its pauses, after its last drawing) the square is given back to what the game drew last; where that is not the found thing (a trap under a corpse, an I cleared), the found thing's form fades as a copy over the light's fall. Two lights, the found thing's terminal color mixed halfway to a warm white, never gold, casting no shadow: a pool, 300,000 lumens reaching 2.5 squares, one square out from the found square toward the hero, and a narrow light on the found thing's own face from a square and a half out, 6,000,000 lumens, which comes up only as the cover thins, so it lights the thing found and not what hid it (the found door's face reaches 1.29 times the wall's resting brightness, the floor's light unchanged). Both rise over 0.15 s, swell a tenth each time the game shows the thing, and fall over 0.6 s on an S-curve after the game is done; from high up (the eye 2 to 8 squares up) they ease to 0.45 of that, so the pool marks the find without outshining the hero's @ (N-5101). If the watch tells a flash the queue did not show (its third change), the hold begins there with no copy. It is told only when one square, and nothing else, changes look after look between the same two glyphs, the first a thing a search finds (terrain, a trap, an I) and the other the same or an object lying on it, with no key after the first, no request, line or status change between (nh-moments blink.rs). A monster's own flash (flash_mon, mon.c:6067) and a mimic found keep the terminal's blink: one look cannot tell them from a pet stepping in and out of sight beside the hero during a counted rest, which the game pauses for each turn with no words (hack.c:2996-3016). Not told, each a test: a monster stepping off a square and back, a pet or a warning in and out of sight in a counted rest, a missile crossing, a missile thrown back onto one square, Mjollnir returning down a dark corridor, a thing rerolled while hallucinating, a beam, a ray bouncing in the dark, the shield effect, a door opened and closed, a key in the middle, a third glyph.
- Id
codex.blink- Exact state
- Built, not reviewed
- Playtests
flash-found-door,flash-found-door-terminal- Settings
animations.blink_strength- Code
crates/nh-moments/src/blink.rs,crates/nh-moments/src/lib.rs,crates/nh-plays/src/blink.rs,crates/codex-client/src/moments.rs,crates/codex-client/src/draw/world.rs
| N-665 | Built, not reviewed | The game's flash, softened |
A running hero glides to each square the game shows, then stands while the game pauses.
Builtneeds reviewTransition
Details
N-655. NetHack paces multi-turn movement by its runmode option (Guidebook, "runmode": teleport "update the map after movement has finished", run "after every seven or so steps", walk "after each step", crawl "like walk, but pause briefly after each step.", doc/Guidebook.mn:4756-4764): runmode_delay_output (hack.c:2996) flushes the map and pauses (delay_output, 50 ms on the tty, win/tty/termcap.c:801) before each move (allmain.c:517) and after it (hack.c:2990), at every seventh turn under run, every move under walk, with four more pauses under crawl, never under teleport. The port sends each pause as DelayOutput and the client holds the game for it (pace.game_pause_ms, shortened while keys wait by pace.pause_when_keys_waiting). Codex never reads the option: a look that moved the hero and ended at a pause becomes a steady glide from where the letter is drawn to the square the game shows, never quicker than the run's steady pace (camera.run_seconds_per_square, codex.run_glide), so nothing jumps however many squares one redraw shows; what is left of the game's pauses the hero stands still. A single square is never crossed quicker than ground newly shown comes out of the dark (animations.run_rests_step_seconds, 0.35, as fog_of_war.comes_out_of_the_dark_seconds): crossed in two frames, the first-person eye arrived beside walls still dark and the hallway darkened at every square (the review's third look). So under crawl the letter crosses a square over seven of the game's ten pauses and stands for the last three (replay runmode-crawl); under walk, whose redraws come a square every tenth of a second, it glides on at the game's pace a little behind it and never stands mid-run (runmode-walk); under run, the default, whose redraws come about five squares then one apart, the run stays the steady glide it was (runmode-run; the corner a cut as before, T-3100), the review of 2026-11-27 having ruled that five squares in a twentieth of a second is a pop; under teleport nothing pauses and the run is one move, as before (runmode-teleport). A strength above 1 stretches a crossing over that many pauses. The lantern is the hero's own light and travels with the letter. From above the same. Nothing rests where the pause is not the run's: a look that ended anywhere but a pause (a run stopped by a monster coming into view, flushed at the next command with no pause; a --More--; a request), a pause with no move of the hero (a counted search, resting, a helpless turn), a pause with a thrown thing or a beam's or explosion's symbol in it (the hero's step keeps its spring there). Only the hero's pace changes: no square, letter, color or light is added.
- Id
codex.run_rests- Exact state
- Built, not reviewed
- Settings
animations.run_rests_strength,animations.run_rests_step_seconds- Code
crates/nh-plays/src/hero/rests.rs,crates/nh-plays/src/underway/eye.rs,crates/codex-client/src/game.rs,crates/nh-knobs/src/animations/run_rests.rs,crates/codex-client/src/replays.rs
| N-655 | Built, not reviewed | The run rests where NetHack pauses |
Applies to everything on the map (1)
- Every symbol is a plain keyboard character, even when the player's symbol set draws lines.
Accepted pictures and playtests
Playtests: flash-found-door, flash-found-door-terminal
Planned and proposed
Planned A thing the game flashes fades in and out on its square, once for each of the game's alternations.
Details for builders
Id: delays. Lexicon subjects: effect.delay, effect.flash, chrome.delay.
Design notes from NetHack
One delay per square of a ray, missile, dig beam or boomerang; two per explosion; 21 per shield sparkle; 50 ms each with nap on.
The found thing's glyph alternates with what was shown at its square, 6 times for detection finds.
Backlog rows
| N-665 | Built, not reviewed | The game's flash, softened |
| N-655 | Built, not reviewed | The run rests where NetHack pauses |
