running
Several squares at once. The terminal shows every seventh step or so.
Builtneeds review2 changes builtSeen all the timeLast touched November 27, 2026: a change of its own was written or changed. Commit 8d2cfe0c6.
In the terminal
The hero moves until something stops the run, and what stops it depends on the mode. Every mode, Shift included, stops for a monster it can see in front, and before water or lava in front unless the hero is flying, levitating or knows they walk on it. g and G also stop for a hostile monster beside the hero, for a closed door straight beside it, and for stairs, a fountain, an altar, a throne, or an open or empty doorway beside or ahead of the path; Shift takes all of those as more corridor. A trap the hero has seen stops g and G only in front; a trap beside the path stops no mode. Objects beside the path stop no mode. Every mode stops after stepping onto objects, or onto a door or a feature. Only g stops where a corridor widens; Shift and G follow a corridor's turns. While blind, nothing beside the path stops a run. The tty's runmode option sets how it is shown: "run" (default) redraws the map every 7 steps, "walk" every step, "crawl" every step with extra delays, "teleport" only at the end. Stops are silent unless mention_walls says why ("You stop in front of the door.").
Quotes from NetHack
Go in that direction until you hit a wall or run into something.
9 more quotes
Prefix: similar to \(oqg\(cq, but forking of corridors is not considered interesting.
if ((svc.context.run != 1 && !is_safemon(mtmp)) || (infront && !svc.context.travel)) {
if (svc.context.run != 1 && !svc.context.travel) { ... You("stop in front of the door.");
} else { /* e.g. objects or trap or stairs */ if (svc.context.run == 1) goto bcorr;
if ((svc.context.run == 1 || svc.context.run == 3 || svc.context.run == 8) && !noturn && !m0 && i0
/* if there's anything here, stop running */
for normal (leap) mode, update display every 7th step
"teleport", "run", "walk", "crawl"
You stop in front of the door.
Decisions
Runs glide along their line instead of jumping.
Codex draws itFull text
Runs glide. Under the default runmode the core flushes the display every seventh step, so a run arrives as a multi-square jump. The hero glides along the run's straight line from the old square to the new; the direction is known from the run key, so nothing is inferred.
Backlog decisions: D-26Every straight part of a run glides. A turn in the run cuts.
Codex draws itFull text
PROVISIONAL. While a run is in progress, every straight move glides along its own line, the run key's or a corridor's next leg after a corner; a move that is not a straight line (the run turned between two looks) cuts. Rejected: gliding only along the key's direction (every leg after a corner would cut); an L-shaped glide (infers the path).
Backlog decisions: D-41In Codex
A run slides the hero along its whole line in one continuous move instead of jumping ahead.
BuiltTransition
Details
Runs glide (D-26): under the default runmode the core shows a run every seventh or so step, so it arrives as a jump; after a run key (Shift or Ctrl with a direction, or a G or g prefix), each straight move glides along its own line at run_seconds_per_square, the run key's line or a corridor's next leg after a corner (D-41), continuing from wherever the last part reached, so a run looks like one continuous move. A move off a straight line cuts; travel and teleports cut.
- Id
codex.run_glide- Exact state
- Built
- Playtests
journey-game- Settings
camera.glide_runs,camera.run_seconds_per_square- Code
crates/nh-moments/src/command.rs,crates/nh-plays/src/hero/motion.rs
| N-27 | Done | 5 | Runs glide (D-26); 07-run playtest on a seeded corridor: |
| T-20 | Done | 5 | 07-run's glide check is independent of screenshot timing and frame rate (it failed twice on CI's slow software renderer): |
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)
- Up steps forward, down steps back, and left and right turn in place without using a game turn.
Accepted pictures and playtests
Playtests: journey-game
Planned and proposed
Idea Running leaves faint streaks on the letters you pass and widens the view slightly.
Details for builders
Id: run. Lexicon subjects: moment.run.
Design notes from NetHack
With the default runmode the map is redrawn every 7 steps ('walk': every step; 'teleport': only at the end); stops are silent.
Backlog rows
| N-27 | Done | 5 | Runs glide (D-26); 07-run playtest on a seeded corridor: |
| T-20 | Done | 5 | 07-run's glide check is independent of screenshot timing and frame rate (it failed twice on CI's slow software renderer): |
| N-655 | Built, not reviewed | The run rests where NetHack pauses |

