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

Function putmesg

src/pline.c:64–80  ·  view source on GitHub ↗

keeps windowprocs usage out of pline() */

Source from the content-addressed store, hash-verified

62
63/* keeps windowprocs usage out of pline() */
64staticfn void
65putmesg(const char *line)
66{
67 int attr = ATR_NONE;
68
69 if (iflags.debug_prevent_pline)
70 return;
71
72 if ((gp.pline_flags & URGENT_MESSAGE) != 0
73 && (windowprocs.wincap2 & WC2_URGENT_MESG) != 0)
74 attr |= ATR_URGENT;
75 if ((gp.pline_flags & SUPPRESS_HISTORY) != 0
76 && (windowprocs.wincap2 & WC2_SUPPRESS_HIST) != 0)
77 attr |= ATR_NOHISTORY;
78 putstr(WIN_MESSAGE, attr, line);
79 SoundSpeak(line);
80}
81
82/* set the direction where next message happens */
83void

Callers 1

vplineFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected