Terminal.pipeThroughStdOut

Set this before you create any Terminals if you want it to merge the C stdout and stderr streams into the GUI terminal window. It will always redirect stdout if this is set (you may want to check for existing redirections first before setting this, see Terminal.stdoutIsTerminal), and will redirect stderr as well if it is invalid or points to the parent terminal.

You must opt into this since it is globally invasive (changing the C handle can affect things across the program) and possibly buggy. It also will likely hurt the efficiency of embedded terminal output.

Please note that this is currently only available in with TerminalDirectToEmulator version enabled.

struct Terminal
version(TerminalDirectToEmulator)
static
shared(bool) pipeThroughStdOut;

Meta

History

Added October 2, 2020.