diff options
author | Berk Geveci <berk.geveci@kitware.com> | 2001-11-30 20:04:25 (GMT) |
---|---|---|
committer | Berk Geveci <berk.geveci@kitware.com> | 2001-11-30 20:04:25 (GMT) |
commit | 5b6e7bcf702dbed1e523e29880efa6d917b1f087 (patch) | |
tree | 20527abe0e327a63267d6ce1b9a972b8899a402f /Source/CursesDialog | |
parent | e32fc72f48bdcebd3bac8ea2a44c9539aa80b1a7 (diff) | |
download | CMake-5b6e7bcf702dbed1e523e29880efa6d917b1f087.zip CMake-5b6e7bcf702dbed1e523e29880efa6d917b1f087.tar.gz CMake-5b6e7bcf702dbed1e523e29880efa6d917b1f087.tar.bz2 |
Improving interface.
Diffstat (limited to 'Source/CursesDialog')
-rw-r--r-- | Source/CursesDialog/cmCursesMainForm.cxx | 2 | ||||
-rw-r--r-- | Source/CursesDialog/cmCursesStringWidget.cxx | 12 |
2 files changed, 13 insertions, 1 deletions
diff --git a/Source/CursesDialog/cmCursesMainForm.cxx b/Source/CursesDialog/cmCursesMainForm.cxx index 73b14e6..33d70ba 100644 --- a/Source/CursesDialog/cmCursesMainForm.cxx +++ b/Source/CursesDialog/cmCursesMainForm.cxx @@ -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" diff --git a/Source/CursesDialog/cmCursesStringWidget.cxx b/Source/CursesDialog/cmCursesStringWidget.cxx index 3504b3a..2bc39d8 100644 --- a/Source/CursesDialog/cmCursesStringWidget.cxx +++ b/Source/CursesDialog/cmCursesStringWidget.cxx @@ -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) { |