diff options
author | Duncan Ogilvie <mr.exodia.tpodt@gmail.com> | 2022-01-14 16:31:28 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2022-01-18 21:35:39 (GMT) |
commit | 9278c6e01a1ce1b93b51522d1bee50eceaf86c3c (patch) | |
tree | 8e4c28b06b67f63b06d74b7903f5144cad94f348 /Source/CursesDialog/cmCursesMainForm.cxx | |
parent | b97c12babbc87324b8005cf7e81640e1f3c0ecf6 (diff) | |
download | CMake-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.cxx | 6 |
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) { |