1 /* NetHack 3.6 flag.h $NHDT-Date: 1554155745 2019/04/01 21:55:45 $ $NHDT-Branch: NetHack-3.6.2-beta01 $:$NHDT-Revision: 1.150 $ */
2 /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
3 /*-Copyright (c) Michael Allison, 2006. */
4 /* NetHack may be freely redistributed. See license for details. */
6 /* If you change the flag structure make sure you increment EDITLEVEL in */
7 /* patchlevel.h if needed. Changing the instance_flags structure does */
8 /* not require incrementing EDITLEVEL. */
14 * Persistent flags that are saved and restored with the game.
19 boolean acoustics; /* allow dungeon sound messages */
20 boolean autodig; /* MRKR: Automatically dig */
21 boolean autoquiver; /* Automatically fill quiver */
22 boolean autoopen; /* open doors by walking into them */
24 boolean biff; /* enable checking for mail */
25 boolean bones; /* allow saving/loading bones */
26 boolean confirm; /* confirm before hitting tame monsters */
27 boolean dark_room; /* show shadows in lit rooms */
28 boolean debug; /* in debugging mode */
29 #define wizard flags.debug
30 boolean end_own; /* list all own scores */
31 boolean explore; /* in exploration mode */
32 #define discover flags.explore
34 boolean friday13; /* it's Friday the 13th */
35 boolean help; /* look in data file for info about stuff */
36 boolean ignintr; /* ignore interrupts */
37 boolean ins_chkpt; /* checkpoint as appropriate; INSURANCE */
38 boolean invlet_constant; /* let objects keep their inventory symbol */
39 boolean legacy; /* print game entry "story" */
40 boolean lit_corridor; /* show a dark corr as lit if it is in sight */
41 boolean nap; /* `timed_delay' option for display effects */
42 boolean null; /* OK to send nulls to the terminal */
43 boolean p__obsolete; /* [3.6.2: perm_invent moved to iflags] */
44 boolean pickup; /* whether you pickup or move and look */
45 boolean pickup_thrown; /* auto-pickup items you threw */
46 boolean pushweapon; /* When wielding, push old weapon into second slot */
47 boolean rest_on_space; /* space means rest */
48 boolean safe_dog; /* give complete protection to the dog */
49 boolean showexp; /* show experience points */
50 boolean showscore; /* show score */
51 boolean silent; /* whether the bell rings or not */
53 * 'sortloot' originally took a True/False value but was changed
54 * to use a letter instead. 3.6.0 was released without changing its
55 * type from 'boolean' to 'char'. A compiler was smart enough to
56 * complain that assigning any of the relevant letters was not 0 or 1
57 * so not appropriate for boolean (by a configuration which used
58 * SKIP_BOOLEAN to bypass nethack's 'boolean' and use a C++-compatible
59 * one). So the type was changed to 'xchar', which is guaranteed to
60 * match the size of 'boolean' (this guarantee only applies for the
61 * !SKIP_BOOLEAN config, unfortunately). Since xchar does not match
62 * actual use, the type was later changed to 'char'. But that would
63 * break 3.6.0 savefile compatibility for configurations which typedef
64 * 'schar' to 'short int' instead of to 'char'. (Needed by pre-ANSI
65 * systems that use unsigned characters without a way to force them
66 * to be signed.) So, the type has been changed back to 'xchar' for
69 * TODO: change to 'char' (and move out of this block of booleans,
70 * and get rid of these comments...) once 3.6.0 savefile compatibility
74 /* this is the normal configuration; assigning a character constant
75 for a normal letter to an 'xchar' variable should always work even
76 if 'char' is unsigned since character constants are actually 'int'
77 and letters are within the range where signedness shouldn't matter */
78 xchar sortloot; /* 'n'=none, 'l'=loot (pickup), 'f'=full ('l'+invent) */
80 /* with SKIP_BOOLEAN, we have no idea what underlying type is being
81 used, other than it isn't 'xchar' (although its size might match
82 that) or a bitfield (because it must be directly addressable);
83 it's probably either 'char' for compactness or 'int' for access,
84 but we don't know which and it might be something else anyway;
85 flip a coin here and guess 'char' for compactness */
86 char sortloot; /* 'n'=none, 'l'=loot (pickup), 'f'=full ('l'+invent) */
88 boolean sortpack; /* sorted inventory */
89 boolean sparkle; /* show "resisting" special FX (Scott Bigham) */
90 boolean standout; /* use standout for --More-- */
91 boolean time; /* display elapsed 'time' */
92 boolean tombstone; /* print tombstone */
93 boolean verbose; /* max battle info */
94 int end_top, end_around; /* describe desired score list */
96 unsigned long suppress_alert;
99 unsigned paranoia_bits; /* alternate confirmation prompting */
100 #define PARANOID_CONFIRM 0x0001
101 #define PARANOID_QUIT 0x0002
102 #define PARANOID_DIE 0x0004
103 #define PARANOID_BONES 0x0008
104 #define PARANOID_HIT 0x0010
105 #define PARANOID_PRAY 0x0020
106 #define PARANOID_REMOVE 0x0040
107 #define PARANOID_BREAKWAND 0x0080
108 #define PARANOID_WERECHANGE 0x0100
109 int pickup_burden; /* maximum burden before prompt */
110 int pile_limit; /* controls feedback when walking over objects */
111 char inv_order[MAXOCLASSES];
112 char pickup_types[MAXOCLASSES];
113 #define NUM_DISCLOSURE_OPTIONS 6 /* i,a,v,g,c,o (decl.c) */
114 #define DISCLOSE_PROMPT_DEFAULT_YES 'y'
115 #define DISCLOSE_PROMPT_DEFAULT_NO 'n'
116 #define DISCLOSE_PROMPT_DEFAULT_SPECIAL '?' /* v, default a */
117 #define DISCLOSE_YES_WITHOUT_PROMPT '+'
118 #define DISCLOSE_NO_WITHOUT_PROMPT '-'
119 #define DISCLOSE_SPECIAL_WITHOUT_PROMPT '#' /* v, use a */
120 char end_disclose[NUM_DISCLOSURE_OPTIONS + 1]; /* disclose various
122 char menu_style; /* User interface style setting */
123 boolean made_fruit; /* don't easily let the user overflow the number of
126 /* KMH, role patch -- Variables used during startup.
128 * If the user wishes to select a role, race, gender, and/or alignment
129 * during startup, the choices should be recorded here. This
130 * might be specified through command-line options, environmental
131 * variables, a popup dialog box, menus, etc.
133 * These values are each an index into an array. They are not
134 * characters or letters, because that limits us to 26 roles.
135 * They are not booleans, because someday someone may need a neuter
136 * gender. Negative values are used to indicate that the user
137 * hasn't yet specified that particular value. If you determine
138 * that the user wants a random choice, then you should set an
139 * appropriate random value; if you just left the negative value,
140 * the user would be asked again!
142 * These variables are stored here because the u structure is
143 * cleared during character initialization, and because the
144 * flags structure is restored for saved games. Thus, we can
145 * use the same parameters to build the role entry for both
146 * new and restored games.
148 * These variables should not be referred to after the character
149 * is initialized or restored (specifically, after role_init()
152 int initrole; /* starting role (index into roles[]) */
153 int initrace; /* starting race (index into races[]) */
154 int initgend; /* starting gender (index into genders[]) */
155 int initalign; /* starting alignment (index into aligns[]) */
156 int randomall; /* randomly assign everything not specified */
157 int pantheon; /* deity selection for priest character */
158 /* Items which were in iflags in 3.4.x to preserve savefile compatibility
160 boolean lootabc; /* use "a/b/c" rather than "o/i/b" when looting */
161 boolean showrace; /* show hero glyph by race rather than by role */
162 boolean travelcmd; /* allow travel command */
163 int runmode; /* update screen display during run moves */
167 * System-specific flags that are saved with the game if SYSFLAGS is defined.
170 #if defined(AMIFLUSH) || defined(AMII_GRAPHICS) || defined(OPT_DISPMAP)
173 #if defined(MFLOPPY) || defined(MAC)
182 boolean altmeta; /* use ALT keys as META */
183 boolean amiflush; /* kill typeahead */
188 amii_dripens[20]; /* DrawInfo Pens currently there are 13 in v39 */
189 AMII_COLOR_TYPE amii_curmap[AMII_MAXCOLORS]; /* colormap */
192 boolean fast_map; /* use optimized, less flexible map display */
198 boolean page_wait; /* put up a --More-- after a page of messages */
204 * Flags that are set each time the game is started.
205 * These are not saved with the game.
209 /* values for iflags.getpos_coords */
210 #define GPCOORDS_NONE 'n'
211 #define GPCOORDS_MAP 'm'
212 #define GPCOORDS_COMPASS 'c'
213 #define GPCOORDS_COMFULL 'f'
214 #define GPCOORDS_SCREEN 's'
216 enum getloc_filters {
230 boolean immediateflips;
234 struct instance_flags {
235 /* stuff that really isn't option or platform related. They are
236 * set and cleared during the game to control the internal
237 * behaviour of various NetHack functions and probably warrant
238 * a structure of their own elsewhere some day.
240 boolean debug_fuzzer; /* fuzz testing */
241 boolean defer_plname; /* X11 hack: askname() might not set plname */
242 boolean herecmd_menu; /* use menu when mouseclick on yourself */
243 boolean invis_goldsym; /* gold symbol is ' '? */
244 int failing_untrap; /* move_into_trap() -> spoteffects() -> dotrap() */
245 int in_lava_effects; /* hack for Boots_off() */
246 int last_msg; /* indicator of last message player saw */
247 int override_ID; /* true to force full identification of objects */
248 int parse_config_file_src; /* hack for parse_config_line() */
249 int purge_monsters; /* # of dead monsters still on fmon list */
250 int suppress_price; /* controls doname() for unpaid objects */
251 int terrainmode; /* for getpos()'s autodescribe when #terrain is active */
256 #define TER_DETECT 0x10 /* detect_foo magic rather than #terrain */
257 boolean getloc_travelmode;
258 int getloc_filter; /* GFILTER_foo */
259 boolean getloc_usemenu;
260 boolean getloc_moveskip;
261 coord travelcc; /* coordinates for travel_cache */
262 boolean trav_debug; /* display travel path (#if DEBUG only) */
263 boolean window_inited; /* true if init_nhwindows() completed */
264 boolean vision_inited; /* true if vision is ready */
265 boolean sanity_check; /* run sanity checks */
266 boolean mon_polycontrol; /* debug: control monster polymorphs */
267 boolean in_dumplog; /* doing the dumplog right now? */
268 boolean in_parse; /* is a command being parsed? */
270 /* stuff that is related to options and/or user or platform preferences
272 unsigned msg_history; /* hint: # of top lines to save */
273 int getpos_coords; /* show coordinates when getting cursor position */
274 int menu_headings; /* ATR for menu headings */
275 int *opt_booldup; /* for duplication of boolean opts in config file */
276 int *opt_compdup; /* for duplication of compound opts in conf file */
278 boolean altmeta; /* Alt-c sends ESC c rather than M-c */
280 boolean autodescribe; /* autodescribe mode in getpos() */
281 boolean cbreak; /* in cbreak mode, rogue format */
282 boolean deferred_X; /* deferred entry into explore mode */
283 boolean echo; /* 1 to echo characters */
284 boolean force_invmenu; /* always menu when handling inventory */
285 /* FIXME: goldX belongs in flags, but putting it in iflags avoids
286 breaking 3.6.[01] save files */
287 boolean goldX; /* for BUCX filtering, whether gold is X or U */
288 boolean hilite_pile; /* mark piles of objects with a hilite */
289 boolean implicit_uncursed; /* maybe omit "uncursed" status in inventory */
290 boolean mention_walls; /* give feedback when bumping walls */
291 boolean menu_head_objsym; /* Show obj symbol in menu headings */
292 boolean menu_overlay; /* Draw menus over the map */
293 boolean menu_requested; /* Flag for overloaded use of 'm' prefix
294 * on some non-move commands */
295 boolean menu_tab_sep; /* Use tabs to separate option menu fields */
296 boolean news; /* print news */
297 boolean num_pad; /* use numbers for movement commands */
298 boolean perm_invent; /* keep full inventories up until dismissed */
299 boolean renameallowed; /* can change hero name during role selection */
300 boolean renameinprogress; /* we are changing hero name */
301 boolean status_updates; /* allow updates to bottom status lines;
302 * disable to avoid excessive noise when using
303 * a screen reader (use ^X to review status) */
304 boolean toptenwin; /* ending list in window instead of stdout */
305 boolean use_background_glyph; /* use background glyph when appropriate */
306 boolean use_menu_color; /* use color in menus; only if wc_color */
307 #ifdef STATUS_HILITES
308 long hilite_delta; /* number of moves to leave a temp hilite lit */
309 long unhilite_deadline; /* time when oldest temp hilite should be unlit */
311 boolean zerocomp; /* write zero-compressed save files */
312 boolean rlecomp; /* alternative to zerocomp; run-length encoding
313 * compression of levels when writing savefile */
315 boolean cursesgraphics; /* Use portable curses extended characters */
316 #if 0 /* XXXgraphics superseded by symbol sets */
317 boolean DECgraphics; /* use DEC VT-xxx extended character set */
318 boolean IBMgraphics; /* use IBM extended character set */
319 #ifdef MAC_GRAPHICS_ENV
320 boolean MACgraphics; /* use Macintosh extended character set, as
321 as defined in the special font HackFont */
324 uchar bouldersym; /* symbol for boulder display */
325 char prevmsg_window; /* type of old message window to use */
326 boolean extmenu; /* extended commands use menu interface */
328 boolean checkspace; /* check disk space before writing files */
329 /* (in iflags to allow restore after moving
330 * to >2GB partition) */
333 boolean BIOS; /* use IBM or ST BIOS calls when appropriate */
335 #if defined(MICRO) || defined(WIN32)
336 boolean rawio; /* whether can use rawio (IOCTL call) */
338 #ifdef MAC_GRAPHICS_ENV
339 boolean MACgraphics; /* use Macintosh extended character set, as
340 as defined in the special font HackFont */
341 unsigned use_stone; /* use the stone ppats */
343 #if defined(MSDOS) || defined(WIN32)
344 boolean hassound; /* has a sound card */
345 boolean usesound; /* use the sound card */
346 boolean usepcspeaker; /* use the pc speaker */
349 boolean traditional_view;
352 boolean hasvga; /* has a vga adapter */
353 boolean usevga; /* use the vga adapter */
354 boolean hasvesa; /* has a VESA-capable VGA adapter */
355 boolean usevesa; /* use the VESA-capable VGA adapter */
356 boolean grmode; /* currently in graphics mode */
359 boolean lan_mail; /* mail is initialized */
360 boolean lan_mail_fetched; /* mail is awaiting display */
362 #ifdef TTY_TILES_ESCCODES
363 boolean vt_tiledata; /* output console codes for tile support in TTY */
365 boolean clicklook; /* allow right-clicking for look */
366 boolean cmdassist; /* provide detailed assistance for some comnds */
367 boolean time_botl; /* context.botl for 'time' (moves) only */
368 boolean wizweight; /* display weight of everything in wizard mode */
370 * Window capability support.
372 boolean wc_color; /* use color graphics */
373 boolean wc_hilite_pet; /* hilight pets */
374 boolean wc_ascii_map; /* show map using traditional ascii */
375 boolean wc_tiled_map; /* show map using tiles */
376 boolean wc_preload_tiles; /* preload tiles into memory */
377 int wc_tile_width; /* tile width */
378 int wc_tile_height; /* tile height */
379 char *wc_tile_file; /* name of tile file;overrides default */
380 boolean wc_inverse; /* use inverse video for some things */
381 int wc_align_status; /* status win at top|bot|right|left */
382 int wc_align_message; /* message win at top|bot|right|left */
383 int wc_vary_msgcount; /* show more old messages at a time */
384 char *wc_foregrnd_menu; /* points to foregrnd color name for menu win */
385 char *wc_backgrnd_menu; /* points to backgrnd color name for menu win */
386 char *wc_foregrnd_message; /* points to foregrnd color name for msg win */
387 char *wc_backgrnd_message; /* points to backgrnd color name for msg win */
388 char *wc_foregrnd_status; /* points to foregrnd color name for status */
389 char *wc_backgrnd_status; /* points to backgrnd color name for status */
390 char *wc_foregrnd_text; /* points to foregrnd color name for text win */
391 char *wc_backgrnd_text; /* points to backgrnd color name for text win */
392 char *wc_font_map; /* points to font name for the map win */
393 char *wc_font_message; /* points to font name for message win */
394 char *wc_font_status; /* points to font name for status win */
395 char *wc_font_menu; /* points to font name for menu win */
396 char *wc_font_text; /* points to font name for text win */
397 int wc_fontsiz_map; /* font size for the map win */
398 int wc_fontsiz_message; /* font size for the message window */
399 int wc_fontsiz_status; /* font size for the status window */
400 int wc_fontsiz_menu; /* font size for the menu window */
401 int wc_fontsiz_text; /* font size for text windows */
402 int wc_scroll_amount; /* scroll this amount at scroll_margin */
403 int wc_scroll_margin; /* scroll map when this far from the edge */
404 int wc_map_mode; /* specify map viewing options, mostly
405 * for backward compatibility */
406 int wc_player_selection; /* method of choosing character */
407 boolean wc_splash_screen; /* display an opening splash screen or not */
408 boolean wc_popup_dialog; /* put queries in pop up dialogs instead of
409 * in the message window */
410 boolean wc_eight_bit_input; /* allow eight bit input */
411 boolean wc2_fullscreen; /* run fullscreen */
412 boolean wc2_softkeyboard; /* use software keyboard */
413 boolean wc2_wraptext; /* wrap text */
414 boolean wc2_selectsaved; /* display a menu of user's saved games */
415 boolean wc2_darkgray; /* try to use dark-gray color for black glyphs */
416 boolean wc2_hitpointbar; /* show graphical bar representing hit points */
417 boolean wc2_guicolor; /* allow colours in gui (outside map) */
418 int wc_mouse_support; /* allow mouse support */
419 int wc2_term_cols; /* terminal width, in characters */
420 int wc2_term_rows; /* terminal height, in characters */
421 int wc2_statuslines; /* default = 2, curses can handle 3 */
422 int wc2_windowborders; /* display borders on NetHack windows */
423 int wc2_petattr; /* text attributes for pet */
424 struct autopickup_exception *autopickup_exceptions[2];
428 #define MAX_ALTKEYHANDLER 25
429 char altkeyhandler[MAX_ALTKEYHANDLER];
431 /* copies of values in struct u, used during detection when the
432 originals are temporarily cleared; kept here rather than
433 locally so that they can be restored during a hangup save */
434 Bitfield(save_uswallow, 1);
435 Bitfield(save_uinwater, 1);
436 Bitfield(save_uburied, 1);
437 /* item types used to acomplish "special achievements"; find the target
438 object and you'll be flagged as having achieved something... */
439 short mines_prize_type; /* luckstone */
440 short soko_prize_type1; /* bag of holding or */
441 short soko_prize_type2; /* amulet of reflection */
442 struct debug_flags debug;
443 boolean windowtype_locked; /* windowtype can't change from configfile */
444 boolean windowtype_deferred; /* pick a windowport and store it in
445 chosen_windowport[], but do not switch to
446 it in the midst of options processing */
447 boolean obsolete; /* obsolete options can point at this, it isn't used */
451 * Old deprecated names
454 #define eight_bit_tty wc_eight_bit_input
456 #define use_color wc_color
457 #define hilite_pet wc_hilite_pet
458 #define use_inverse wc_inverse
459 #ifdef MAC_GRAPHICS_ENV
460 #define large_font obsolete
463 #define popup_dialog wc_popup_dialog
465 #define preload_tiles wc_preload_tiles
467 extern NEARDATA struct flag flags;
469 extern NEARDATA struct sysflag sysflags;
471 extern NEARDATA struct instance_flags iflags;
475 * pline("some message");
476 * pline: vsprintf + putstr + iflags.last_msg = PLNMSG_UNKNOWN;
477 * iflags.last_msg = PLNMSG_some_message;
478 * and subsequent code can adjust the next message if it is affected
479 * by some_message. The next message will clear iflags.last_msg.
482 PLNMSG_UNKNOWN = 0, /* arbitrary */
483 PLNMSG_ONE_ITEM_HERE, /* "you see <single item> here" */
484 PLNMSG_TOWER_OF_FLAME, /* scroll of fire */
485 PLNMSG_CAUGHT_IN_EXPLOSION, /* explode() feedback */
486 PLNMSG_OBJ_GLOWS, /* "the <obj> glows <color>" */
487 PLNMSG_OBJNAM_ONLY /* xname/doname only, for #tip */
490 /* runmode options */
492 RUN_TPORT = 0, /* don't update display until movement stops */
493 RUN_LEAP, /* update display every 7 steps */
494 RUN_STEP, /* update display every single step */
495 RUN_CRAWL /* walk w/ extra delay after each update */
498 /* paranoid confirmation prompting */
499 /* any yes confirmations also require explicit no (or ESC) to reject */
500 #define ParanoidConfirm ((flags.paranoia_bits & PARANOID_CONFIRM) != 0)
501 /* quit: yes vs y for "Really quit?" and "Enter explore mode?" */
502 #define ParanoidQuit ((flags.paranoia_bits & PARANOID_QUIT) != 0)
503 /* die: yes vs y for "Die?" (dying in explore mode or wizard mode) */
504 #define ParanoidDie ((flags.paranoia_bits & PARANOID_DIE) != 0)
505 /* hit: yes vs y for "Save bones?" in wizard mode */
506 #define ParanoidBones ((flags.paranoia_bits & PARANOID_BONES) != 0)
507 /* hit: yes vs y for "Really attack <the peaceful monster>?" */
508 #define ParanoidHit ((flags.paranoia_bits & PARANOID_HIT) != 0)
509 /* pray: ask "Really pray?" (accepts y answer, doesn't require yes),
510 taking over for the old prayconfirm boolean option */
511 #define ParanoidPray ((flags.paranoia_bits & PARANOID_PRAY) != 0)
512 /* remove: remove ('R') and takeoff ('T') commands prompt for an inventory
513 item even when only one accessory or piece of armor is currently worn */
514 #define ParanoidRemove ((flags.paranoia_bits & PARANOID_REMOVE) != 0)
515 /* breakwand: Applying a wand */
516 #define ParanoidBreakwand ((flags.paranoia_bits & PARANOID_BREAKWAND) != 0)
517 /* werechange: accepting randomly timed werecreature change to transform
518 from human to creature or vice versa while having polymorph control */
519 #define ParanoidWerechange ((flags.paranoia_bits & PARANOID_WERECHANGE) != 0)
521 /* command parsing, mainly dealing with number_pad handling;
522 not saved and restored */
525 /* forward declaration sufficient to declare pointers */
526 struct ext_func_tab; /* from func_tab.h */
529 /* special key functions */
536 /* run ... clicklook need to be in a continuous block */
556 NHKF_GETPOS_PICK_Q, /* quick */
557 NHKF_GETPOS_PICK_O, /* once */
558 NHKF_GETPOS_PICK_V, /* verbose */
559 NHKF_GETPOS_SHOWVALID,
560 NHKF_GETPOS_AUTODESC,
561 NHKF_GETPOS_MON_NEXT,
562 NHKF_GETPOS_MON_PREV,
563 NHKF_GETPOS_OBJ_NEXT,
564 NHKF_GETPOS_OBJ_PREV,
565 NHKF_GETPOS_DOOR_NEXT,
566 NHKF_GETPOS_DOOR_PREV,
567 NHKF_GETPOS_UNEX_NEXT,
568 NHKF_GETPOS_UNEX_PREV,
569 NHKF_GETPOS_INTERESTING_NEXT,
570 NHKF_GETPOS_INTERESTING_PREV,
571 NHKF_GETPOS_VALID_NEXT,
572 NHKF_GETPOS_VALID_PREV,
575 NHKF_GETPOS_LIMITVIEW,
576 NHKF_GETPOS_MOVESKIP,
592 /* commands[] is used to directly access cmdlist[] instead of looping
593 through it to find the entry for a given input character;
594 move_X is the character used for moving one step in direction X;
595 alphadirchars corresponds to old sdir,
596 dirchars corresponds to ``iflags.num_pad ? ndir : sdir'';
597 pcHack_compat and phone_layout only matter when num_pad is on,
598 swap_yz only matters when it's off */
600 unsigned serialno; /* incremented after each update */
601 boolean num_pad; /* same as iflags.num_pad except during updates */
602 boolean pcHack_compat; /* for numpad: affects 5, M-5, and M-0 */
603 boolean phone_layout; /* inverted keypad: 1,2,3 above, 7,8,9 below */
604 boolean swap_yz; /* QWERTZ keyboards; use z to move NW, y to zap */
605 char move_W, move_NW, move_N, move_NE, move_E, move_SE, move_S, move_SW;
606 const char *dirchars; /* current movement/direction characters */
607 const char *alphadirchars; /* same as dirchars if !numpad */
608 const struct ext_func_tab *commands[256]; /* indexed by input character */
609 char spkeys[NUM_NHKF];
612 extern NEARDATA struct cmd Cmd;