Improving interface.

This commit is contained in:
Berk Geveci 2001-11-30 15:04:25 -05:00
parent e32fc72f48
commit 5b6e7bcf70
2 changed files with 13 additions and 1 deletions

View File

@ -438,7 +438,6 @@ void cmCursesMainForm::RunCMake(bool generateMakefiles)
curses_clear();
curses_move(1,1);
printw("Running CMake, please wait.");
touchwin(stdscr);
refresh();
endwin();
@ -795,6 +794,7 @@ const char* cmCursesMainForm::s_ConstHelpMessage =
" C-d : delete previous character\n"
" C-k : kill the rest of the field\n"
" Esc : Restore field (discard last changes)\n"
" Enter : Leave edit mode\n"
"You can also delete an option by pressing 'd'\n\n"
"Commands:\n"
" q : quit ccmake without generating build files\n"

View File

@ -54,6 +54,18 @@ bool cmCursesStringWidget::HandleInput(int& key, FORM* form, WINDOW* w)
strcpy(originalStr, buf);
}
}
else if ( key == KEY_DOWN || key == ctrl('n') ||
key == KEY_UP || key == ctrl('p') ||
key == KEY_NPAGE || key == ctrl('d') ||
key == KEY_PPAGE || key == ctrl('u'))
{
m_InEdit = false;
delete[] originalStr;
// trick to force forms to update the field buffer
form_driver(form, REQ_NEXT_FIELD);
form_driver(form, REQ_PREV_FIELD);
return false;
}
// esc
else if (key == 27)
{