MCPcopy Create free account
hub / github.com/crawl/crawl / cprintf

Function cprintf

crawl-ref/source/libgui.cc:88–99  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

86}
87
88void cprintf(const char *format,...)
89{
90 if (in_headless_mode())
91 return;
92 char buffer[2048]; // One full screen if no control seq...
93 va_list argp;
94 va_start(argp, format);
95 vsnprintf(buffer, sizeof(buffer), format, argp);
96 va_end(argp);
97 // object's method
98 TextRegion::text_mode->addstr(buffer);
99}
100
101void textcolour(int colour)
102{

Callers 15

renderMethod · 0.70
unmangle_direction_keysFunction · 0.70
nowrap_eol_cprintfFunction · 0.70
wrapcprint_skippingFunction · 0.70
cursortoMethod · 0.70
renderMethod · 0.70
out_lineMethod · 0.70
moreMethod · 0.70
renderMethod · 0.70
renderMethod · 0.70
_renderMethod · 0.70
_cprintf_touchuiFunction · 0.70

Calls 2

addstrMethod · 0.80
in_headless_modeFunction · 0.70

Tested by

no test coverage detected