summaryrefslogtreecommitdiffstats
path: root/Source/CursesDialog/cmCursesLongMessageForm.cxx
diff options
context:
space:
mode:
authorBerk Geveci <berk.geveci@kitware.com>2001-11-30 18:59:36 (GMT)
committerBerk Geveci <berk.geveci@kitware.com>2001-11-30 18:59:36 (GMT)
commite9d40967136a10f69d5e516a77b2ef4d9a8667a5 (patch)
treec79653ccb6c6a95a9bcfb7f262bd048341df5699 /Source/CursesDialog/cmCursesLongMessageForm.cxx
parent50c64a00600b941b7d64e8f7fb48a345ac26b750 (diff)
downloadCMake-e9d40967136a10f69d5e516a77b2ef4d9a8667a5.zip
CMake-e9d40967136a10f69d5e516a77b2ef4d9a8667a5.tar.gz
CMake-e9d40967136a10f69d5e516a77b2ef4d9a8667a5.tar.bz2
Improved help.
Diffstat (limited to 'Source/CursesDialog/cmCursesLongMessageForm.cxx')
-rw-r--r--Source/CursesDialog/cmCursesLongMessageForm.cxx17
1 files changed, 15 insertions, 2 deletions
diff --git a/Source/CursesDialog/cmCursesLongMessageForm.cxx b/Source/CursesDialog/cmCursesLongMessageForm.cxx
index 731e92e..80940a5 100644
--- a/Source/CursesDialog/cmCursesLongMessageForm.cxx
+++ b/Source/CursesDialog/cmCursesLongMessageForm.cxx
@@ -4,6 +4,11 @@
#include "cmCursesLongMessageForm.h"
#include "cmCursesMainForm.h"
+inline int ctrl(int z)
+{
+ return (z&037);
+}
+
cmCursesLongMessageForm::cmCursesLongMessageForm(std::vector<std::string>
const& messages, const char*
title)
@@ -160,14 +165,22 @@ void cmCursesLongMessageForm::HandleInput()
{
break;
}
- else if ( key == KEY_DOWN )
+ else if ( key == KEY_DOWN || key == ctrl('n') )
{
form_driver(m_Form, REQ_SCR_FLINE);
}
- else if ( key == KEY_UP )
+ else if ( key == KEY_UP || key == ctrl('p') )
{
form_driver(m_Form, REQ_SCR_BLINE);
}
+ else if ( key == KEY_NPAGE || key == ctrl('d') )
+ {
+ form_driver(m_Form, REQ_SCR_FPAGE);
+ }
+ else if ( key == KEY_PPAGE || key == ctrl('u') )
+ {
+ form_driver(m_Form, REQ_SCR_BPAGE);
+ }
this->UpdateStatusBar();
this->PrintKeys();