ConsoleManager Class
Definition
Section titled “Definition”public static class ConsoleManagerInheritance object
Fields
Section titled “Fields”ConfigConsoleEnabled
Section titled “ConfigConsoleEnabled”public static readonly ConfigEntry<bool> ConfigConsoleEnabledConfigPreventClose
Section titled “ConfigPreventClose”public static readonly ConfigEntry<bool> ConfigPreventCloseConfigConsoleShiftJis
Section titled “ConfigConsoleShiftJis”public static readonly ConfigEntry<bool> ConfigConsoleShiftJisConfigConsoleOutRedirectType
Section titled “ConfigConsoleOutRedirectType”public static readonly ConfigEntry<ConsoleManager.ConsoleOutRedirectType> ConfigConsoleOutRedirectTypeProperties
Section titled “Properties”ConsoleEnabled
Section titled “ConsoleEnabled”public static bool ConsoleEnabled { get; }ConsoleActive
Section titled “ConsoleActive”True if an external console has been started, false otherwise.
public static bool ConsoleActive { get; }StandardOutStream
Section titled “StandardOutStream”The stream that writes to the standard out stream of the process. Should never be null.
public static TextWriter StandardOutStream { get; }ConsoleStream
Section titled “ConsoleStream”The stream that writes to an external console. Null if no such console exists
public static TextWriter ConsoleStream { get; }Methods
Section titled “Methods”Initialize(bool, bool)
Section titled “Initialize(bool, bool)”public static void Initialize(bool alreadyActive, bool useManagedEncoder)Parameters
Section titled “Parameters”alreadyActive bool
useManagedEncoder bool
CreateConsole()
Section titled “CreateConsole()”public static void CreateConsole()DetachConsole()
Section titled “DetachConsole()”public static void DetachConsole()SetConsoleTitle(string)
Section titled “SetConsoleTitle(string)”public static void SetConsoleTitle(string title)Parameters
Section titled “Parameters”title string
SetConsoleColor(ConsoleColor)
Section titled “SetConsoleColor(ConsoleColor)”public static void SetConsoleColor(ConsoleColor color)Parameters
Section titled “Parameters”color ConsoleColor