1 /* SCCS Id: @(#)wintype.h 3.4 1996/02/18 */
2 /* Copyright (c) David Cohrs, 1991 */
3 /* NetHack may be freely redistributed. See license for details. */
8 typedef int winid; /* a window identifier */
10 /* generic parameter - must not be any larger than a pointer */
17 /* add types as needed */
19 #define ANY_P union any /* avoid typedef in prototypes */
20 /* (buggy old Ultrix compiler) */
22 /* menu return list */
24 anything item; /* identifier */
25 long count; /* count */
27 #define MENU_ITEM_P struct mi
29 /* select_menu() "how" argument types */
30 #define PICK_NONE 0 /* user picks nothing (display only) */
31 #define PICK_ONE 1 /* only pick one */
32 #define PICK_ANY 2 /* can pick any amount */
35 /* any additional port specific types should be defined in win*.h */
42 /* attribute types for putstr; the same as the ANSI value, for convenience */
50 /* nh_poskey() modifier types */
55 #define WIN_ERR ((winid) -1)
57 /* menu window keyboard commands (may be mapped) */
58 #define MENU_FIRST_PAGE '^'
59 #define MENU_LAST_PAGE '|'
60 #define MENU_NEXT_PAGE '>'
61 #define MENU_PREVIOUS_PAGE '<'
62 #define MENU_SELECT_ALL '.'
63 #define MENU_UNSELECT_ALL '-'
64 #define MENU_INVERT_ALL '@'
65 #define MENU_SELECT_PAGE ','
66 #define MENU_UNSELECT_PAGE '\\'
67 #define MENU_INVERT_PAGE '~'
68 #define MENU_SEARCH ':'
71 #endif /* WINTYPE_H */