| 116 | } |
| 117 | |
| 118 | void cmCursesLongMessageForm::Render(int /*left*/, int /*top*/, int /*width*/, |
| 119 | int /*height*/) |
| 120 | { |
| 121 | int x; |
| 122 | int y; |
| 123 | getmaxyx(stdscr, y, x); |
| 124 | |
| 125 | if (this->Form) { |
| 126 | unpost_form(this->Form); |
| 127 | free_form(this->Form); |
| 128 | this->Form = nullptr; |
| 129 | } |
| 130 | |
| 131 | if (this->Fields[0]) { |
| 132 | free_field(this->Fields[0]); |
| 133 | this->Fields[0] = nullptr; |
| 134 | } |
| 135 | |
| 136 | this->Fields[0] = new_field(y - 6, x - 2, 1, 1, 0, 0); |
| 137 | |
| 138 | field_opts_off(this->Fields[0], O_STATIC); |
| 139 | |
| 140 | this->Form = new_form(this->Fields); |
| 141 | post_form(this->Form); |
| 142 | |
| 143 | form_driver(this->Form, REQ_BEG_FIELD); |
| 144 | this->DrawMessage(this->Messages.c_str()); |
| 145 | |
| 146 | this->UpdateStatusBar(); |
| 147 | touchwin(stdscr); |
| 148 | refresh(); |
| 149 | } |
| 150 | |
| 151 | void cmCursesLongMessageForm::DrawMessage(char const* msg) const |
| 152 | { |
nothing calls this directly
no test coverage detected