Property print.redirectConsoleOutput
Overload
Let Console.WriteX methods in non-console process write to the same destination as print.it.
public static bool redirectConsoleOutput { get; set; }
Property Value
Remarks
The default value is true
in non-console scripts with role miniProgram (default) that use System.Console functions.
If Console.Write text does not end with '\n'
character, it is buffered and not displayed until called again with text ending with '\n'
character or until called Console.WriteLine.
Console.Clear will not clear output; it will throw exception.