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

Method PrintKeys

Source/CursesDialog/cmCursesStringWidget.cxx:189–214  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

187}
188
189bool 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}

Callers 2

OnReturnMethod · 0.45
HandleInputMethod · 0.45

Calls 3

moveFunction · 0.85
clrtoeolFunction · 0.85
printwFunction · 0.85

Tested by

no test coverage detected