| 149 | } |
| 150 | |
| 151 | void 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 | |
| 170 | void cmCursesLongMessageForm::HandleInput() |
| 171 | { |
no test coverage detected