MCPcopy Create free account
hub / github.com/DFHack/dfhack / print_text

Method print_text

library/Console-windows.cpp:92–109  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

90 }
91
92 void print_text(color_ostream::color_value clr, const std::string &chunk)
93 {
94 if(!in_batch && state == con_lineedit)
95 {
96 clearline();
97
98 color(clr);
99 print(chunk.c_str());
100
101 reset_color();
102 prompt_refresh();
103 }
104 else
105 {
106 color(clr);
107 print(chunk.c_str());
108 }
109 }
110
111 void begin_batch()
112 {

Callers 1

add_textMethod · 0.45

Calls 3

c_strMethod · 0.80
colorFunction · 0.50
printFunction · 0.50

Tested by

no test coverage detected