Source:NetHack 3.1.0/wintype.h

From NetHackWiki
Jump to navigation Jump to search

Below is the full text to wintype.h from the source code of NetHack 3.1.0. To link to a particular line, write [[NetHack 3.1.0/wintype.h#line123]], for example.

Warning! This is the source code from an old release. For the latest release, see Source code

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.    /*	SCCS Id: @(#)wintype.h	3.1	91/07/03	*/
2.    /* Copyright (c) David Cohrs, 1991				  */
3.    /* NetHack may be freely redistributed.  See license for details. */
4.    
5.    #ifndef WINTYPE_H
6.    #define WINTYPE_H
7.    
8.    /* window types */
9.    /* any additional port specific types should be defined in win*.h */
10.   #define NHW_MESSAGE 1
11.   #define NHW_STATUS  2
12.   #define NHW_MAP     3
13.   #define NHW_MENU    4
14.   #define NHW_TEXT    5
15.   
16.   /* attribute types for putstr; the same as the ANSI value, for convenience */
17.   #define ATR_NONE    0
18.   #define ATR_BOLD    1
19.   #define ATR_DIM     2
20.   #define ATR_ULINE   4
21.   #define ATR_BLINK   5
22.   #define ATR_INVERSE 7
23.   
24.   /* nh_poskey() modifier types */
25.   #define CLICK_1     1
26.   #define CLICK_2	    2
27.   
28.   /* invalid winid */
29.   #define WIN_ERR ((winid) -1)
30.   
31.   #endif /* WINTYPE_H */