summaryrefslogtreecommitdiffstats
path: root/Source/CursesDialog/cmCursesMainForm.cxx
diff options
context:
space:
mode:
authorDuncan Ogilvie <mr.exodia.tpodt@gmail.com>2022-01-14 16:31:28 (GMT)
committerBrad King <brad.king@kitware.com>2022-01-18 21:35:39 (GMT)
commit9278c6e01a1ce1b93b51522d1bee50eceaf86c3c (patch)
tree8e4c28b06b67f63b06d74b7903f5144cad94f348 /Source/CursesDialog/cmCursesMainForm.cxx
parentb97c12babbc87324b8005cf7e81640e1f3c0ecf6 (diff)
downloadCMake-9278c6e01a1ce1b93b51522d1bee50eceaf86c3c.zip
CMake-9278c6e01a1ce1b93b51522d1bee50eceaf86c3c.tar.gz
CMake-9278c6e01a1ce1b93b51522d1bee50eceaf86c3c.tar.bz2
ccmake: Add Windows support using PDCurses
Diffstat (limited to 'Source/CursesDialog/cmCursesMainForm.cxx')
-rw-r--r--Source/CursesDialog/cmCursesMainForm.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/Source/CursesDialog/cmCursesMainForm.cxx b/Source/CursesDialog/cmCursesMainForm.cxx
index 0012a25..11b3b35 100644
--- a/Source/CursesDialog/cmCursesMainForm.cxx
+++ b/Source/CursesDialog/cmCursesMainForm.cxx
@@ -686,6 +686,12 @@ void cmCursesMainForm::HandleInput()
}
int key = getch();
+#ifdef _WIN32
+ if (key == KEY_RESIZE) {
+ HandleResize();
+ }
+#endif // _WIN32
+
getmaxyx(stdscr, y, x);
// If window too small, handle 'q' only
if (x < cmCursesMainForm::MIN_WIDTH || y < cmCursesMainForm::MIN_HEIGHT) {