process.window_hidden

process.window_hidden

process.window_hidden

Function

Hide the console child process window under Windows. This method is suitable for the bt_app desktop application or background service to start the console program while continuing to read the progress through the stdout/stderr pipe.

Syntax

Parameters

No parameters.

Return value

TypeDescription
ProcessReturns the new process builder.

Example

Notes

  • The console child process window is hidden by default in non-inherit_stdio() scenarios under Windows; explicitly calling window_hidden() can make the business code clearer.
  • window_hidden() will cancel the interactive stdio inheritance semantics of inherit_stdio() and child() will continue to use the default stdout/stderr pipe.
  • This method does not change the system window behavior under Linux/macOS and only retains chain configuration compatibility.