| 187 | } |
| 188 | |
| 189 | bool cmCursesStringWidget::PrintKeys() |
| 190 | { |
| 191 | int x; |
| 192 | int y; |
| 193 | getmaxyx(stdscr, y, x); |
| 194 | if (x < cmCursesMainForm::MIN_WIDTH || y < cmCursesMainForm::MIN_HEIGHT) { |
| 195 | return false; |
| 196 | } |
| 197 | if (this->InEdit) { |
| 198 | char fmt_s[] = "%s"; |
| 199 | // Clean the toolbar |
| 200 | move(y - 4, 0); |
| 201 | clrtoeol(); |
| 202 | move(y - 3, 0); |
| 203 | printw(fmt_s, "Editing option, press [enter] to confirm"); |
| 204 | clrtoeol(); |
| 205 | move(y - 2, 0); |
| 206 | printw(fmt_s, " press [esc] to cancel"); |
| 207 | clrtoeol(); |
| 208 | move(y - 1, 0); |
| 209 | clrtoeol(); |
| 210 | |
| 211 | return true; |
| 212 | } |
| 213 | return false; |
| 214 | } |
no test coverage detected