pets

Tame monsters. The terminal marks them only while the hilite_pet option is on.

The terminal shows this in words, not as a letter.
Terminal
A pet the game marks is underlined in its own color, in the world and in the minimap.
Codex: from a builder's report

Builtneeds review2 changes builtSeen all the timeLast touched November 17, 2026: a backlog row it names changed (N-351). Commit aca01857e.

In the terminal

Off by default: a pet looks exactly like a wild monster of its kind. With hilite_pet on, the tty draws pets with petattr (default inverse video); tiles ports put a heart beside them. Farlook prefixes 'tame'. While hallucinating pets are not marked at all (they are random monsters like everything else). A pet long worm's tail is marked too.

Quotes from NetHack

Visually distinguish pets from similar animals (default off).
doc/Guidebook.mn:4167
3 more quotes
In text windowing, text highlighting or inverse video is often used; with tiles, generally displays a heart symbol near pets.
doc/Guidebook.mn:4169
There are no glyphs for "detected pets" so we have to decide whether to display such things as detected or as tame.
src/display.c:594
You %s %s.
src/hack.c:2169, "You swap places with your kitten." (or "frighten" an untame one)

Decisions

Pets get a faint underline, only when the game would mark them too.

Letter kept, changed in place
Full text

Pets marked where the tty's hilite_pet marks them (MG_PET): world, minimap, terminal view; subtle and tunable. The port sets PET only while the player's hilite_pet is on (before, it always did, and nh-moments read it: a distinction the terminal hides). A faint underline in the pet's color under its letter, and underlined in the minimap and terminal view ([world] pet_mark, pet_mark_glow).

Backlog decisions: N-28

In Codex

A monster or pet that moves slides from its old square to its new one instead of blinking across.

Builtneeds reviewTransition

Details

Every tracked letter glides, everywhere (N-86; director, 2026-10-31: "Monsters can glide everywhere, and so can pets and heros"; the hero's own steps and runs glide already, codex.run_glide). When nh-moments' tracker follows a monster from one square to a nearby one (the same letter in the same color gone from one square and appearing within two in the same input turn, D-24; never the species, N-79), the letter drawn on the new square starts back on the old one and slides to its own place over monster_glide_seconds, eased like the hero's step and carrying its speed into the next slide if it moves again first; shorter while keys are queued (pace.pause_when_keys_waiting). A fast monster's two-square move slides along one line. A pack stepping together (identical letters in a line, the back one's square emptied and a new one in front, the squares between showing the same letter in both looks) steps one square each, so a letter never slides through its packmate and a pack coming down a corridor closes in as a moving line (D-22); where two packmates could each have stepped in, nothing glides. The signal audit (2026-10-31) added three guards: a letter marked as the pet (hilite_pet) and one not are never one thing; a letter that vanished in an earlier look of the same input turn loses to one that vanished in this look (a monster killed earlier in the turn doesn't walk off), and stays vanished once the hero has moved on (a run, travel); the remaining look-alikes (a monster teleported, hidden or newly in sight within two squares, hallucination, a curled long worm) give at most a wrong slide over the right picture. Only the letter moves (its pet underline with it): the squares are what nh-scene says, the director's camera reads the game's squares, and a letter hit while still sliding hurries to its square over catch_up_seconds, the recoil riding on the last of its slide (codex.plays_meet, D-81). No match or a tie: the letter blinks, as on the terminal. A wrong match is a wrong slide, never wrong information. A pet swapping places with the hero (nh-moments' swap: it left the square the hero now stands on for the one the hero stood on the look before, so mounting a steed is not one; animation idea 35, approved with this, D-17) steps pet_swap_steps_aside (0.3 of a square) to the right of its way at the middle of its walk and back, so the two letters pass beside each other. Off (monster_glide = false), letters blink as the terminal draws them.

Id
codex.monster_glide
Exact state
Built, not reviewed
Playtests
journey-game, journey-dads-options
Settings
animations.monster_glide, animations.monster_glide_seconds, animations.pet_swap_steps_aside, pace.pause_when_keys_waiting
Code
crates/nh-moments/src/track.rs, crates/nh-plays/src/walk.rs, crates/nh-plays/src/lib.rs, crates/codex-client/src/draw/in_flight.rs
N-86DoneMonsters walk from square to square instead of blinking
N-79DoneThe tracker's same-thing test includes the species index

A pet the game marks is underlined in its own color, in the world and in the minimap.

BuiltLetter

A pet the game marks is underlined in its own color, in the world and in the minimap.A pet the game marks is underlined in its own color, in the world and in the minimap.
Details

A pet the terminal would mark gets a faint underline in its own color under its letter (a thin self-lit bar that turns with the letter), and is underlined in the minimap and the terminal view (N-28). The port sets the pet flag only while the player's hilite_pet is on, so without the option a pet looks like any monster, as on the terminal. The tty's own mark is inverse video by default (petattr); Codex underlines instead and does not follow petattr.

Id
codex.pet_mark
Exact state
Built
Playtests
journey-dads-options
Settings
characters.underline_pets, characters.pet_underline_brightness, characters.monsters_show_through_haze
Code
crates/nh-host/csrc/codex_glyph.c, crates/nh-scene/src/build/occupant.rs, crates/codex-client/src/draw/things.rs, crates/codex-client/src/hud.rs
N-28Done5 | Pets marked where the tty's hilite_pet marks them (MG_PET):
Applies to everything on the map (4)
  • A monster is its letter, standing upright and glowing in its own color so it shows in the dark.
  • The window port passes what the game chose for each glyph as the tty would show it, and no more.
  • Every symbol is a plain keyboard character, even when the player's symbol set draws lines.
  • The map is drawn as a 3D world of walls and floors, lit by the hero's torch and a faint glow.

Accepted pictures and playtests

Playtests: journey-game, journey-dads-options

Planned and proposed

Idea A player's own form plays its idle movement while it stands.

In progress Letters seen from afar resolve into their forms up close.

Asked for in these words: “Danny, 2026-10-28 (NORTH_STAR.md, notes from the director): "Or maybe the letters are visible from afar and as the monsters come closer they step-through into focus where they are actually rendered"”

Left to do: Which letters are drawn inside themselves next is the director's choice.

Details for builders

Id: pets. Lexicon subjects: creature.mark.pet.

Design notes from NetHack

With hilite_pet: inverse video on the tty, a heart beside the tile in tiles ports; the monster's glyph is unchanged.

Backlog rows

N-86DoneMonsters walk from square to square instead of blinking
N-79DoneThe tracker's same-thing test includes the species index
N-28Done5 | Pets marked where the tty's hilite_pet marks them (MG_PET):
N-354DoneA player's form stands still
N-2Built, not reviewedLetter↔form study and prototype (letters at distance resolve into forms up close), behind a toggle.
N-351Built, not reviewedThe next letters to draw inside themselves