| 1052 | } |
| 1053 | |
| 1054 | void cmCursesMainForm::DisplayOutputs(std::string const& newOutput) |
| 1055 | { |
| 1056 | int xi; |
| 1057 | int yi; |
| 1058 | getmaxyx(stdscr, yi, xi); |
| 1059 | |
| 1060 | if (CurrentForm != this->LogForm.get()) { |
| 1061 | auto* newLogForm = new cmCursesLongMessageForm( |
| 1062 | this->Outputs, this->LastProgress.c_str(), |
| 1063 | cmCursesLongMessageForm::ScrollBehavior::ScrollDown); |
| 1064 | CurrentForm = newLogForm; |
| 1065 | this->LogForm.reset(newLogForm); |
| 1066 | this->LogForm->Render(1, 1, xi, yi); |
| 1067 | } else { |
| 1068 | this->LogForm->UpdateContent(newOutput, this->LastProgress); |
| 1069 | } |
| 1070 | } |
| 1071 | |
| 1072 | char const* cmCursesMainForm::s_ConstHelpMessage = |
| 1073 | "CMake is used to configure and generate build files for software projects. " |
no test coverage detected