MCPcopy Create free account
hub / github.com/Kitware/VTK / DisplayText

Method DisplayText

Common/Core/vtkWin32ProcessOutputWindow.cxx:58–73  ·  view source on GitHub ↗

------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

56
57//------------------------------------------------------------------------------
58void vtkWin32ProcessOutputWindow::DisplayText(const char* text)
59{
60 std::lock_guard<std::mutex> lock(vtkWin32ProcessOutputWindowMutex);
61 // Display the text if the pipe has not been broken.
62 if (!this->Broken && text)
63 {
64 const char* begin = text;
65 while (const char* end = strchr(begin, '\n'))
66 {
67 this->Write(begin, end - begin);
68 this->Write("\r\n", 2);
69 begin = end + 1;
70 }
71 this->Write(begin, strlen(begin));
72 }
73}
74
75//------------------------------------------------------------------------------
76int vtkWin32ProcessOutputWindow::Initialize()

Callers

nothing calls this directly

Calls 1

WriteMethod · 0.95

Tested by

no test coverage detected