Class ConsoleManager

Inheritance
System.Object ConsoleManager
Inherited Members
System.Object.ToString() System.Object.Equals(System.Object) System.Object.Equals(System.Object, System.Object) System.Object.ReferenceEquals(System.Object, System.Object) System.Object.GetHashCode() System.Object.GetType() System.Object.MemberwiseClone()
Namespace: BepInEx
Assembly: BepInEx.Core.dll
Syntax
public static class ConsoleManager

Fields

ConfigConsoleEnabled

Declaration
public static readonly ConfigEntry<bool> ConfigConsoleEnabled
Field Value
Type Description
ConfigEntry<System.Boolean>

ConfigConsoleOutRedirectType

Declaration
public static readonly ConfigEntry<ConsoleManager.ConsoleOutRedirectType> ConfigConsoleOutRedirectType
Field Value
Type Description
ConfigEntry<ConsoleManager.ConsoleOutRedirectType>

ConfigConsoleShiftJis

Declaration
public static readonly ConfigEntry<bool> ConfigConsoleShiftJis
Field Value
Type Description
ConfigEntry<System.Boolean>

ConfigPreventClose

Declaration
public static readonly ConfigEntry<bool> ConfigPreventClose
Field Value
Type Description
ConfigEntry<System.Boolean>

Properties

ConsoleActive

True if an external console has been started, false otherwise.

Declaration
public static bool ConsoleActive { get; }
Property Value
Type Description
System.Boolean

ConsoleEnabled

Declaration
public static bool ConsoleEnabled { get; }
Property Value
Type Description
System.Boolean

ConsoleStream

The stream that writes to an external console. Null if no such console exists

Declaration
public static TextWriter ConsoleStream { get; }
Property Value
Type Description
System.IO.TextWriter

StandardOutStream

The stream that writes to the standard out stream of the process. Should never be null.

Declaration
public static TextWriter StandardOutStream { get; }
Property Value
Type Description
System.IO.TextWriter

Methods

CreateConsole()

Declaration
public static void CreateConsole()

DetachConsole()

Declaration
public static void DetachConsole()

Initialize(Boolean, Boolean)

Declaration
public static void Initialize(bool alreadyActive, bool useManagedEncoder)
Parameters
Type Name Description
System.Boolean alreadyActive
System.Boolean useManagedEncoder

SetConsoleColor(ConsoleColor)

Declaration
public static void SetConsoleColor(ConsoleColor color)
Parameters
Type Name Description
System.ConsoleColor color

SetConsoleTitle(String)

Declaration
public static void SetConsoleTitle(string title)
Parameters
Type Name Description
System.String title