diff options
author | Sylvain Joubert <joubert.sy@gmail.com> | 2016-11-15 10:55:03 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2016-11-15 16:01:01 (GMT) |
commit | 5ca4abb27f314ce03fc337514c489e67bfcf0ee5 (patch) | |
tree | 55fba2564bb4164b7b395594a6be3ed56fc7056b /Source/CursesDialog/cmCursesStringWidget.cxx | |
parent | a9562eac3ee74b3ed396f2900dfae322186e2ebe (diff) | |
download | CMake-5ca4abb27f314ce03fc337514c489e67bfcf0ee5.zip CMake-5ca4abb27f314ce03fc337514c489e67bfcf0ee5.tar.gz CMake-5ca4abb27f314ce03fc337514c489e67bfcf0ee5.tar.bz2 |
ccmake: Correctly display edit mode and associated keys
Specific widgets can implement `PrintKeys` but their effects were hidden
by the main widget `PrintKeys`. Fix this to give the user a better hint
about the edit mode status.
Closes: #13757
Diffstat (limited to 'Source/CursesDialog/cmCursesStringWidget.cxx')
-rw-r--r-- | Source/CursesDialog/cmCursesStringWidget.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/CursesDialog/cmCursesStringWidget.cxx b/Source/CursesDialog/cmCursesStringWidget.cxx index eabc642..ff189f0 100644 --- a/Source/CursesDialog/cmCursesStringWidget.cxx +++ b/Source/CursesDialog/cmCursesStringWidget.cxx @@ -202,7 +202,9 @@ bool cmCursesStringWidget::PrintKeys() printw(fmt_s, firstLine); curses_move(y - 3, 0); - printw(fmt_s, "Editing option, press [enter] to leave edit."); + printw(fmt_s, "Editing option, press [enter] to confirm"); + curses_move(y - 2, 0); + printw(fmt_s, " press [esc] to cancel"); return true; } return false; |