summaryrefslogtreecommitdiffstats
path: root/Source/CursesDialog
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2022-07-07 13:13:06 (GMT)
committerKitware Robot <kwrobot@kitware.com>2022-07-07 13:13:13 (GMT)
commite5530f3d977614b816cecbad926b11de3b2db735 (patch)
treee7d78862011541d2d2069896b36333e06994b05e /Source/CursesDialog
parentd3638a67fc4c095b19d0df0db8845bf0a70efb91 (diff)
parenta78d10220c7484307adfe66e3b7e42c8bd50d53c (diff)
downloadCMake-e5530f3d977614b816cecbad926b11de3b2db735.zip
CMake-e5530f3d977614b816cecbad926b11de3b2db735.tar.gz
CMake-e5530f3d977614b816cecbad926b11de3b2db735.tar.bz2
Merge topic 'ccmake-fix-pdcurses-windows'
a78d10220c ccmake: Fix mangled configuration log with PDCurses on Windows Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7458
Diffstat (limited to 'Source/CursesDialog')
-rw-r--r--Source/CursesDialog/cmCursesLongMessageForm.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/Source/CursesDialog/cmCursesLongMessageForm.cxx b/Source/CursesDialog/cmCursesLongMessageForm.cxx
index 73e3f3c..6e6f0d6 100644
--- a/Source/CursesDialog/cmCursesLongMessageForm.cxx
+++ b/Source/CursesDialog/cmCursesLongMessageForm.cxx
@@ -43,7 +43,8 @@ void cmCursesLongMessageForm::UpdateContent(std::string const& output,
if (!output.empty() && this->Messages.size() < MAX_CONTENT_SIZE) {
this->Messages.push_back('\n');
this->Messages.append(output);
- form_driver(this->Form, REQ_NEW_LINE);
+ form_driver(this->Form, REQ_NEXT_LINE);
+ form_driver(this->Form, REQ_BEG_LINE);
this->DrawMessage(output.c_str());
}
@@ -152,7 +153,8 @@ void cmCursesLongMessageForm::DrawMessage(const char* msg) const
int i = 0;
while (msg[i] != '\0' && i < MAX_CONTENT_SIZE) {
if (msg[i] == '\n' && msg[i + 1] != '\0') {
- form_driver(this->Form, REQ_NEW_LINE);
+ form_driver(this->Form, REQ_NEXT_LINE);
+ form_driver(this->Form, REQ_BEG_LINE);
} else {
form_driver(this->Form, msg[i]);
}