MCPcopy Create free account
hub / github.com/Kitware/CMake / DisplayOutputs

Method DisplayOutputs

Source/CursesDialog/cmCursesMainForm.cxx:1054–1070  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1052}
1053
1054void 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
1072char const* cmCursesMainForm::s_ConstHelpMessage =
1073 "CMake is used to configure and generate build files for software projects. "

Callers 2

UpdateProgressMethod · 0.95
AddErrorMethod · 0.95

Calls 5

c_strMethod · 0.80
UpdateContentMethod · 0.80
getMethod · 0.45
resetMethod · 0.45
RenderMethod · 0.45

Tested by

no test coverage detected