the arrow keys
Relative to facing when walking. Plain map directions when the game asks for a position.
Builtneeds review5 changes builtSeen all the timeLast touched November 27, 2026: a change of its own was written or changed. Commit 9e2ad7c97.
In the terminal
The Unix tty takes no arrow keys (the curses interface and some platform ports map them); movement is the vi-keys or the number pad, always by compass direction, Shift (or a G or g prefix) running.
"(For instructions type a '?')" (with verbose), the purpose ("Where do you want to travel to?", "Pick an object."), then the cursor moves with the direction keys (capitals move 8 squares), and autodescribe (on) writes what is under the cursor to the message line at each step ("doorway", "fountain", "jackal"; with " (no travel path)" or " (invalid target)"). Keys: '.' ',' ';' ':' pick (normally, quickly, once, verbosely); '@' to self; 'm'/'M' next/previous monster, 'o'/'O' object, 'd'/'D' door, 'x'/'X' unexplored, 'a'/'A' anything, 'z'/'Z' valid target; '<' '>' '_' and other map symbols jump to that feature; '$' marks valid squares, '#' toggles autodescribe, '"' limits targets, '*' changes fast-move, '!' a menu; '?' the help window; ESC cancels. 3.7's first use shows a tip window ("Tip: Farlooking or selecting a map location").
Quotes from NetHack
Go in that direction until you hit a wall or run into something.
5 more quotes
(For instructions type a '?')
Use '@' to move the cursor on yourself.
Type a '.' or ',' or ';' or ':' when you are at the right place.
Where do you want to travel to?
Or enter a background symbol (ex. '<').
Decisions
Walking, the arrows are relative to facing. Up steps forward, left and right turn.
Codex draws itFull text
Arrows relative to facing when walking: ↑ forward, ↓ back (keeps facing), ←/→ turn in place (90°, Shift for 45°: D-50), Shift+↑ run. One NetHack command per press. F2 terminal view, F3 first/third person. NetHack's own direction keys stay absolute.
Backlog decisions: D-9Left and right turn 90 degrees, with Shift 45. The 45-degree arrows confused Dad.
Codex draws itFull text
←/→ turn 90°; Shift+←/→ turn 45° (Dad, director). 45° steps from the arrows were confusing. turn_degrees in codex.toml (90; 45 gives the old arrows). NetHack's own keys keep moving as they always do (the numpad's 7/9/1/3 are its diagonal steps and turn you to face them).
Backlog decisions: D-50, N-55Stepping diagonally into a wall slides you along it.
Codex draws itFull text
Sliding along walls: ↑ diagonally into a wall sends the open sideways step and keeps the diagonal facing (slide_along_walls).
Backlog decisions: D-20When the game asks for a position, the arrows are plain map directions.
Left as the terminal shows itFull text
When the game asks for a position (farlook, travel, teleport), arrows are plain 2D map directions and the camera does not turn.
Backlog decisions: D-14In Codex
While a square is chosen, a pulsing gold frame lies on its floor, or on top of its wall.
Builtneeds reviewCamera or view
Details
While the game asks for a position, a thin flat gold frame lies over the floor of the square the cursor is on, gently pulsing, unlit, not fogged and casting no shadow; each bar about 3.5 pixels of 800 on the screen at any distance, slantwise or straight on, and its sides kept clear of a wall's rough foot beside the square. On a wall's square it rises onto the wall's top as the view has cut it as the eye rises above that top (the views from behind and above, N-678); in first person it stays on the floor. Where the corner map's dark plate lies over it, it is cut away, so it never shows through the panel (N-5313). Seen on the right square in all four views (V-7: minimap-turned's views of a near square, a wall and a newt; nh-plays' the_cursor_is_seen_where_a_player_looks_for_it). The camera does not follow it (D-14): a square off the screen is found on the corner map, whose box blinks as the terminal's cursor does.
- Id
codex.floor_cursor- Exact state
- Built, not reviewed
- Playtests
minimap-turned- Code
crates/nh-plays/src/underway/mapping.rs,crates/nh-plays/src/picture/mapping.rs,crates/codex-client/src/draw/mapping.rs,crates/codex-client/src/draw/world.rs,crates/codex-client/src/minimap.rs,crates/nh-scene/src/mesh/things.rs
| V-7 | Built, not reviewed | 3D farlook cursor appears on the right square. |
| N-678 | Built, not reviewed | With farlook's cursor on a wall square, no cursor box is seen in the world from close third (features-minimap's review) Built: |
While the game asks for a position, the minimap boxes the cursor's square in gold.
In progressCamera or view
Details
While the game asks for a position, the minimap boxes the cursor's square in gold, aligned to the font's measured advance and kept inside the cropped minimap even where nothing has been seen. Arrows move it correctly; its alignment awaits a close look (V-6).
- Id
codex.minimap_cursor- Exact state
- In progress
- Playtests
journey-game- Code
crates/codex-client/src/hud.rs
| V-6 | Built, not reviewed | Minimap farlook cursor lines up with the glyphs. |
F2 and the corner map draw the player's own colors and highlights, as their own terminal does.
Builtneeds reviewCamera or view
Details
What the player's own terminal draws beyond NetHack's colors, drawn where Codex draws the terminal's letters (N-119, N-151, N-78; X-459's cells): on the terminal view (F2) and the corner map, a symset's glyph colors (protocol 4's custom_color: IBMGraphics_2, NetHack's Windows default and Dad's, makes the Gnomish Mines' walls brown, Sokoban's blue, Gehennom's red and Ludios's yellow, as wintty.c draws them on a console of 256 colors); on F2's two status lines, the player's status highlights from the same runs the HUD draws (nh_state::status::lines: color, bold, dim, underline, blink, and inverse as the hit point bar's block), each cell in the terminal's own color with only the attributes the player asked for ("normal", botl.h HL_NONE, is none: Dad's hitpoints/100%/gray&normal stays the line's gray; the HUD's brighter text stays out of F2; status_lines.draw_highlights = false keeps only the colors); and while a position prompt highlights the squares it accepts (getpos.c, with bgcolors: a stinking cloud's center, a jump, a polearm, a grapple, a spell's target), the color the tty paints behind them (protocol 4's frame, HI_ZAP's bright blue) behind those squares, on F2 and on the corner map, where wintty.c also leaves the pet's mark off; on the corner map the cursor's box stays over the blue, and on a square the prompt paints it dims to half in its blink rather than going out, since nothing else there says where the cursor is. The terminal's own bright blue holds a gray letter at 1.6:1, so the blue is drawn at position_highlight of its brightness: 0.45 a deep blue, 5.2:1 for a gray '.' in F2 and 4.4:1 on the corner map (hud-terminal, measured); 1 the terminal's own. own_colors = false draws NetHack's colors alone, gray, as before. Behind F2's letters the inverse blocks and the blue come up with the letters as the world lies down (N-499). The HUD's own status lines and the world are unchanged.
- Id
codex.own_colors- Exact state
- Built, not reviewed
- Playtests
hud-terminal- Settings
terminal_view.own_colors,terminal_view.position_highlight- Code
crates/nh-state/src/terminal.rs,crates/codex-client/src/hud.rs,crates/codex-client/src/minimap.rs,assets/shaders/minimap.wesl,crates/nh-knobs/src/terminal_view/own_colors.rs
| N-119 | Built, not reviewed | The terminal view and the minimap in the player's own colors |
| N-151 | Built, not reviewed | The F2 view's status lines in the player's highlights |
| N-78 | Built, not reviewed | The position prompt's highlight is dropped |
Stepping diagonally into a wall or door, the hero slides sideways to the open side instead.
BuiltCamera or view
Details
Sliding along walls (D-20): up pressed while facing diagonally into something the map shows you cannot enter diagonally (a wall, a door, or out of an open door) sends the sideways step toward whichever side is open instead, and keeps the diagonal facing. It reads the terminal's own rule that doors are not entered or left diagonally from the map, and only changes which key the arrow sends.
- Id
codex.slide_along_walls- Exact state
- Built
- Playtests
journey-game- Settings
controls.slide_along_walls- Code
crates/nh-site/src/lib.rs,crates/codex-client/src/input.rs
| V-12 | Done | Slide along walls. |
The map view looks down from high up, north at the top, and the arrows step by compass direction.
Builtneeds reviewCamera or view
Details
The map view (N-57): high and diagonal from the south (map_view_height up, map_view_distance_south south of the hero, looking map_view_looks_ahead north of them), always facing north like the map and the minimap, never straight down; letters turn to face the camera's heading, and here the arrows step north, south, east and west (Shift runs) instead of turning. Most of the level in 3D, with walls cut low.
- Id
codex.view.map- Exact state
- Built, not reviewed
- Playtests
journey-game- Settings
views.map_view_height,views.map_view_distance_south,views.map_view_looks_ahead- Code
crates/nh-plays/src/shot/pose.rs,crates/codex-client/src/input.rs
| N-57 | Done | A high diagonal overview camera |
F3 steps through the views, and the arrows follow the view, with no caption naming it.
Builtneeds reviewCamera or view
Details
F3 steps through the views listed in f3_switches_between (first_person, behind, director, map by default), starting in start_in; first and third person blend into each other (a smoothstep over first_person_switch_seconds); between the map view and first person, with map_to_first_person_in_one_length (on by default since X-820; off gives the three lengths of before), the first-person blend moves with the swing to the map, in its length and on its curve, so the camera makes one move; whether a swing is one move is decided when F3 is pressed and held until both blends land, so pressing F3 again mid-swing never changes the curve under way (X-820). Each blend is a snapshot on the game's clock (moves::Blend, N-266), the same at any frame rate; with moves_keep_their_speed (on by default since X-820), a switch turned back before it lands goes on at the speed it had and bends round to the new view on one curve, landing still (off: it turns round in one frame). On the one move home the hero's letter fades by the share of the swing left, gone before the eye is near (X-5382), and the crane's pull fades over the last quarter of the blend, so the eye lands on a curve (X-5384). The caption that stood under the map naming the view, the camera's stop and what the arrows do (N-263, which had replaced a note in the middle of the screen) is gone: the director, of it, "Drop it" (D-132, N-646); the corner map keeps its place and size.
- Id
codex.view_switch- Exact state
- Built, not reviewed
- Playtests
journey-game,swing-as-now,swing-one-length,swing-turned-back-as-now,swing-turned-back,swing-turned-back-kept,swing-landing- Settings
views.start_in,views.f3_switches_between,camera.first_person_switch_seconds,views.map_to_first_person_in_one_length,camera.moves_keep_their_speed,messages.text_size- Code
crates/codex-client/src/input.rs,crates/codex-client/src/hud.rs,crates/nh-plays/src/shot/moves.rs,crates/nh-plays/src/shot/pose.rs,crates/nh-plays/src/shot/pose/views.rs,crates/nh-plays/src/picture/hero.rs
| N-57 | Done | A high diagonal overview camera |
| N-266 | Built, not reviewed | One choreography engine |
| X-820 | Built, not reviewed | The camera's moves in closed form, and one swing from the map view to first person |
Applies to everything on the map (2)
- When the game asks for a map position, the arrows move the cursor north, south, east and west.
- Up steps forward, down steps back, and left and right turn in place without using a game turn.
Accepted pictures and playtests
Playtests: minimap-turned, journey-game, hud-terminal, swing-as-now, swing-one-length, swing-turned-back-as-now, swing-turned-back, swing-turned-back-kept, swing-landing
Planned and proposed
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 The climb between levels is calm, the camera above the new floor.
In progress Every camera move from one engine, turns keeping their speed and the room opening once.
Left to do: Each move in closed form, and the one-length swing on by default once the director has seen its film
In progress Where the camera is and what it frames, as plain data with goldens.
Left to do: The shot's next round, with one engine for its moves.
Details for builders
Id: arrows. Lexicon subjects: lens.arrows, chrome.prompt.getpos.
Design notes from NetHack
With autodescribe, each cursor step writes what is under the cursor to the message line ('doorway', 'fountain', 'jackal').
Backlog rows
| V-7 | Built, not reviewed | 3D farlook cursor appears on the right square. |
| N-678 | Built, not reviewed | With farlook's cursor on a wall square, no cursor box is seen in the world from close third (features-minimap's review) Built: |
| V-6 | Built, not reviewed | Minimap farlook cursor lines up with the glyphs. |
| N-119 | Built, not reviewed | The terminal view and the minimap in the player's own colors |
| N-151 | Built, not reviewed | The F2 view's status lines in the player's highlights |
| N-78 | Built, not reviewed | The position prompt's highlight is dropped |
| V-12 | Done | Slide along walls. |
| N-57 | Done | A high diagonal overview camera |
| N-266 | Built, not reviewed | One choreography engine |
| X-820 | Built, not reviewed | The camera's moves in closed form, and one swing from the map view to first person |
| N-20 | Done | Arrow keys in menus and text windows (scroll/page) instead of turning the camera. |
| N-40 | To do | 5 | The ascent between levels is legible but busy: |
| N-271 | To do | Turns as moves that keep their speed |
| X-65 | Built, not reviewed | The camera's shot as data |
