pauses and flashes

The terminal's own short pauses between the frames of a ray or a throw, and its screen flashes.

The terminal shows this in words, not as a letter.
Terminal
No picture of this is on the site yet.
Codex

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 */
win/tty/termcap.c:801
4 more quotes
like walk, but pause briefly after each step.
doc/Guidebook.mn:4764, runmode crawl
Briefly flash between the passed glyph and the glyph that's meant to be at the location.
src/display.c:1301
#define FOUND_FLASH_COUNT 6
src/detect.c:19
for normal (leap) mode, update display every 7th step
src/hack.c:3001

Decisions

Ideas are to be planned for the flash and the display delays.

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 (explosions, shields and clouds, engulfing frame, cursor and position marks): "Plan ideas for them".

Backlog decisions: D-131

Ideas are to be planned for the display delays in the game's 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 (display delays): "Plan ideas for them".

Backlog decisions: D-131

In Codex

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-655Built, not reviewedThe 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-665Built, not reviewedThe game's flash, softened
N-655Built, not reviewedThe run rests where NetHack pauses