Source:NetHack 5.0.0/dat/cmdhelp
Jump to navigation
Jump to search
Below is the full text to cmdhelp from the source code of NetHack 5.0.0. To link to a particular line, write [[Source:NetHack 5.0.0/dat/cmdhelp#line12]], for example.
The NetHack General Public License applies to screenshots, source code and other content from NetHack.
This content was modified from the original NetHack source code distribution (by splitting up NetHack content between wiki pages, and possibly further editing). See the page history for a list of who changed it, and on what dates.
1. &# cmdhelp - became obsolete when 'BINDINGS=key:command' got added 2. & Tell what command a keystroke invokes 3. ^ Show the type of an adjacent trap 4. ^[ Cancel command (same as ESCape key) 5. &? debug 6. ^E Search for nearby traps, secret doors, and unseen monsters 7. ^F Map level; reveals traps and secret corridors but not secret doors 8. ^G Create a monster by name or class 9. ^I View inventory with all items identified 10. ^O List special level locations 11. ^V Teleport between levels 12. ^W Wish for something 13. &: #!debug 14. ^E unavailable debugging command 15. ^F unavailable debugging command 16. ^G unavailable debugging command 17. ^I unavailable debugging command 18. ^O Shortcut for '#overview': list interesting levels you have visited 19. ^V unavailable debugging command 20. ^W unavailable debugging command 21. &. #?debug 22. &? number_pad=0,-1 23. b Go southwest 1 space 24. B Go southwest until you are on top of something 25. h Go west 1 space 26. H Go west until you are on top of something 27. j Go south 1 space 28. J Go south until you are on top of something 29. k Go north 1 space 30. K Go north until you are on top of something 31. l Go east 1 space 32. L Go east until you are on top of something 33. n Go southeast 1 space 34. N Go southeast until you are on something 35. u Go northeast 1 space 36. U Go northeast until you are on top of something 37. &# y,Y handled below 38. &: #number_pad=1,2,3,4 39. h Help: synonym for '?' 40. j Jump: shortcut for '#jump' 41. k Kick: synonym for '^D' 42. l Loot: shortcut for '#loot' 43. n Start a count; continue with digit(s) 44. N Name: shortcut for '#name' 45. u Untrap: shortcut for '#untrap' 46. &. #0,-1 vs 1,2,3,4 47. a Apply (use) a tool or break a wand 48. A Remove all armor and/or all accessories and/or unwield weapons 49. ^A Redo the previous command 50. ^B Go southwest until you are near something 51. c Close a door 52. C Call (name) a monster, an individual object, or a type of object 53. ^C Interrupt: quit the game 54. d Drop an item 55. D Drop specific item types 56. ^D Kick something (usually a door, chest, or box) 57. e Eat something 58. E Engrave writing on the floor 59. f Fire ammunition from quiver 60. F Followed by direction, fight a monster (even if you don't sense it) 61. g Followed by direction, move until you are near something 62. G Followed by direction, same as control-direction 63. ^H Go west until you are near something 64. i Show your inventory 65. I Inventory specific item types 66. ^J Go south until you are near something 67. ^K Go north until you are near something 68. ^L Go east until you are near something 69. m Followed by direction, move without picking anything up or fighting 70. M Followed by direction, move a distance without picking anything up 71. ^N Go southeast until you are near something 72. o Open a door 73. O Show option settings, possibly change them 74. p Pay your shopping bill 75. P Put on an accessory (ring, amulet, etc; will work for armor too) 76. ^P Toggle through previously displayed game messages 77. q Quaff (drink) something (potion, water, etc) 78. Q Select ammunition for quiver (use '#quit' to quit) 79. r Read a scroll or spellbook 80. R Remove an accessory (ring, amulet, etc; will work for armor too) 81. ^R Redraw screen 82. s Search all immediately adjacent locations for traps and secret doors 83. S Save the game (and exit; there is no "save and keep going") 84. t Throw something (choose an item, then a direction--not a target) 85. T Take off one piece of armor (will work for accessories too) 86. ^T Teleport around level 87. ^U Go northeast until you are near something 88. v Show version ('#version' shows more information) 89. V Show history of game's development 90. w Wield a weapon (for dual weapons: 'w' secondary, 'x', 'w' primary, 'X') 91. W Wear a piece of armor (will work for accessories too) 92. x Swap wielded and secondary weapons 93. X Toggle two-weapon combat 94. ^X Show your attributes (shows more in debug or explore mode) 95. &? number_pad=0,1,2,3,4 96. &? number_pad=0 97. y Go northwest 1 space 98. Y Go northwest until you are on top of something 99. &. 100. ^Y Go northwest until you are near something 101. z Zap a wand 102. Z Zap (cast) a spell 103. &? suspend 104. ^Z Suspend game; 'fg' (foreground) to resume 105. &: 106. ^Z unavailable command: suspend 107. &. 108. &: number_pad=-1 109. y Zap a wand 110. Y Zap (cast) a spell 111. &? suspend 112. ^Y Suspend game; 'fg' (foreground) to resume 113. &: 114. ^Y unavailable command: suspend 115. &. 116. z Go northwest 1 space 117. Z Go northwest until you are on top of something 118. ^Z Go northwest until you are near something 119. &. #0,1..4 vs -1 120. < Go up a staircase 121. > Go down a staircase 122. / Show what type of thing a symbol corresponds to 123. ? Give a help message 124. &? shell 125. ! Do a shell escape; 'exit' shell to come back 126. &: 127. ! unavailable command: shell 128. &. 129. \ Show what object types have been discovered 130. ` Show discovered types for one class of objects 131. _ Travel via a shortest-path algorithm to a point on the map 132. . Rest one move while doing nothing 133. &? rest_on_space 134. Rest one move while doing nothing 135. &. 136. : Look at what is on the floor 137. ; Show what type of thing a map symbol on the level corresponds to 138. , Pick up things at the current location 139. @ Toggle the pickup option on/off 140. ) Show the weapon(s) currently wielded or readied 141. [ Show the armor currently worn 142. = Show the ring(s) currently worn 143. " Show the amulet currently worn 144. ( Show the tools currently in use 145. * Show all equipment in use (combination of the ),[,=,",( commands) 146. $ Count your gold 147. + List known spells 148. Del Display map without monsters or objects obstructing the view. 149. # Perform an extended command (use '#?' to list choices) 150. &# number_pad: 151. &# -1 = numpad off, swap y with z (including Y with Z, ^Y with ^Z, M-y &c) 152. &# 0 = numpad off (default) 153. &# 1 = numpad on, normal keypad layout, '5'->'g' 154. &# 2 = numpad on, normal keypad layout, '5'->'G' 155. &# 3 = numpad on, phone keypad layout, '5'->'g' 156. &# 4 = numpad on, phone keypad layout, '5'->'G' 157. &? number_pad = 1,2,3,4 158. 0 Show inventory 159. 4 Move west 160. 6 Move east 161. - 'F' prefix; force fight 162. &: #-1,0 163. 0 Continue a count 164. 4 Start or continue a count 165. 6 Start or continue a count 166. &. #1,2,3,4 vs -1,0 167. &? number_pad=1,2 168. 7 Move northwest 169. 8 Move north 170. 9 Move northeast 171. 1 Move southwest 172. 2 Move south 173. 3 Move southeast 174. &: number_pad=3,4 175. 1 Move northwest 176. 2 Move north 177. 3 Move northeast 178. 7 Move southwest 179. 8 Move south 180. 9 Move southeast 181. &: #-1,0 182. 1 Start or continue a count 183. 2 Start or continue a count 184. 3 Start or continue a count 185. 7 Start or continue a count 186. 8 Start or continue a count 187. 9 Start or continue a count 188. &. #1,2 vs 3,4 vs -1,0 189. &? number_pad=1,3 190. 5 'g' movement prefix 191. M-5 'G' movement prefix 192. &: number_pad=2,4 193. 5 'G' movement prefix 194. M-5 'g' movement prefix 195. M-0 Inventory specific item types 196. &: #-1,0 197. 5 Start or continue a count 198. M-2 Toggle two-weapon combat 199. &. #1,3 vs 2,4 vs -1,0 200. M-? Display extended command help (if the platform allows this) 201. M-a Adjust inventory letters 202. M-A Annotate: supply a name for the current dungeon level 203. M-c Chat: talk to an adjacent creature 204. M-C Conduct: list voluntary challenges you have maintained 205. M-d Dip an object into something 206. M-e Enhance: check weapons skills, advance them if eligible 207. M-f Force a lock 208. M-i Invoke an object's special powers 209. M-j Jump to a nearby location 210. M-l Loot a box on the floor 211. M-m When polymorphed, use a monster's special ability 212. M-n Name a monster, an individual object, or a type of object 213. M-N Name a monster, an individual object, or a type of object 214. M-o Offer a sacrifice to the gods 215. M-O Overview: show a summary of the explored dungeon 216. M-p Pray to the gods for help 217. M-q Quit (exit without saving) 218. M-r Rub a lamp or a touchstone 219. M-R Ride: mount or dismount a saddled steed 220. M-s Sit down 221. M-t Turn undead 222. M-T Tip: empty a container 223. M-u Untrap something (trap, door, or chest) 224. M-v Print compile time options for this version of NetHack 225. M-w Wipe off your face 226. M-X Switch from normal play to explore mode