MCPcopy Create free account
hub / github.com/Kitware/CMake / DrawMessage

Method DrawMessage

Source/CursesDialog/cmCursesLongMessageForm.cxx:151–168  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

149}
150
151void cmCursesLongMessageForm::DrawMessage(char const* msg) const
152{
153 int i = 0;
154 while (msg[i] != '\0' && i < MAX_CONTENT_SIZE) {
155 if (msg[i] == '\n' && msg[i + 1] != '\0') {
156 form_driver(this->Form, REQ_NEXT_LINE);
157 form_driver(this->Form, REQ_BEG_LINE);
158 } else {
159 form_driver(this->Form, msg[i]);
160 }
161 i++;
162 }
163 if (this->Scrolling == ScrollBehavior::ScrollDown) {
164 form_driver(this->Form, REQ_END_FIELD);
165 } else {
166 form_driver(this->Form, REQ_BEG_FIELD);
167 }
168}
169
170void cmCursesLongMessageForm::HandleInput()
171{

Callers 2

UpdateContentMethod · 0.95
RenderMethod · 0.95

Calls 1

form_driverFunction · 0.85

Tested by

no test coverage detected