MCPcopy Create free account
hub / github.com/NetHack/NetHack / DisplayDesc

Class DisplayDesc

include/wintty.h:91–107  ·  view source on GitHub ↗

descriptor for tty-based displays -- all the per-display data */

Source from the content-addressed store, hash-verified

89
90/* descriptor for tty-based displays -- all the per-display data */
91struct DisplayDesc {
92 short rows, cols; /* width and height of tty display */
93 short curx, cury; /* current cursor position on the screen */
94 uint32 color; /* current color */
95 uint32 colorflags; /* NH_BASIC_COLOR or 24-bit color */
96 uint32 framecolor; /* current background color */
97 int attrs; /* attributes in effect */
98 int toplin; /* flag for topl stuff */
99 int rawprint; /* number of raw_printed lines since synch */
100 int inmore; /* non-zero if more() is active */
101 int inread; /* non-zero if reading a character */
102 int intr; /* non-zero if inread was interrupted */
103 winid lastwin; /* last window used for I/O */
104 char dismiss_more; /* extra character accepted at --More-- */
105 int topl_utf8; /* non-zero if utf8 in str */
106 int mixed; /* we are processing mixed output */
107};
108
109#endif /* WINDOW_STRUCTS */
110

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected