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

Method PrintKeys

Source/CursesDialog/cmCursesLongMessageForm.cxx:101–116  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

99}
100
101void cmCursesLongMessageForm::PrintKeys()
102{
103 int x;
104 int y;
105 getmaxyx(stdscr, y, x);
106 if (x < cmCursesMainForm::MIN_WIDTH || y < cmCursesMainForm::MIN_HEIGHT) {
107 return;
108 }
109 char firstLine[512];
110 snprintf(firstLine, sizeof(firstLine), "Press [e] to exit screen");
111
112 char fmt_s[] = "%s";
113 move(y - 2, 0);
114 printw(fmt_s, firstLine);
115 pos_form_cursor(this->Form);
116}
117
118void cmCursesLongMessageForm::Render(int /*left*/, int /*top*/, int /*width*/,
119 int /*height*/)

Callers 1

HandleInputMethod · 0.95

Calls 4

moveFunction · 0.85
printwFunction · 0.85
pos_form_cursorFunction · 0.85
snprintfFunction · 0.50

Tested by

no test coverage detected