-
Notifications
You must be signed in to change notification settings - Fork 0
c7646a55 6142 0d6a 9e37 cb86c5ffd02a
Axel Kesseler edited this page Mar 1, 2023
·
15 revisions
This class provides native access to the console window.
System.Object
Plexdata.LogWriter.Internals.Native.Windows.SystemConsoleWrapper
Namespace: Plexdata.LogWriter.Internals.Native.Windows
Assembly: Plexdata.LogWriter.Console.Windows (in Plexdata.LogWriter.Console.Windows.dll) Version: 1.0.7.1
C#
internal class SystemConsoleWrapper
The SystemConsoleWrapper type exposes the following members.
Name | Description | |
---|---|---|
SystemConsoleWrapper | The static class constructor. | |
SystemConsoleWrapper | The private default constructor just initializes almost all properties with its default values. |
Name | Description | |
---|---|---|
Background | Gets or sets the background color to be used. | |
BufferSize | Gets or sets the number of lines and columns of the underlying console screen buffer. | |
Foreground | Gets or sets the text color to be used. | |
Instance | Gets the singleton instance of this class. | |
IsAttached | Gets current attach state of the console window. | |
MustDetach | Gets the state if the console window must be detached. | |
QuickEdit | Enables or disables the Quick Edit Mode of current console window. | |
References | Gets current number of referenced instances. | |
UseColors | Determines if message coloring should be used or not. | |
WindowTitle | Gets and sets the title of the console window. |
Name | Description | |
---|---|---|
Attach | This method safely tries to attach a console window. | |
Decrement | This method decrements the internal reference counter. | |
Detach | This method safely tries to detach a console window. | |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
Finalize | The class destructor. (Overrides Object.Finalize().) | |
GetBackgroundColorFlags | Gets the bitwise combination of requested background color. | |
GetConsoleColorFlags | Gets the bitwise combination of current foreground and background color. | |
GetForegroundColorFlags | Gets the bitwise combination of requested foreground color. | |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetQuickEditMode | This method gets currently applied Quick Edit Mode. | |
GetScreenBufferSize | This method gets currently applied screen buffer size. | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
GetWindowTitle | The method gets the title of current console window. | |
Increment | This method increments the internal reference counter. | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
RestoreConsoleAttributes | This method changes all of the console screen buffer attributes. | |
SetConsoleColor | This method changes current console colors into requested colors. | |
SetQuickEditMode | This method sets currently applied Quick Edit Mode. | |
SetScreenBufferSize | This method sets currently applied screen buffer size. | |
SetWindowTitle | The method sets the title of current console window. | |
ToString | Returns a string that represents the current object. (Inherited from Object.) | |
Write | This method writes provided message into the attached console window. | |
WriteNative | Writes provided message out to console screen buffer. | |
WriteStyled | Writes provided message out to console screen buffer by using currently applied styles. |
Name | Description | |
---|---|---|
hOutput | This field holds the native file handle to the output stream. | |
inputName | This field holds the file name of the standard input stream. | |
instance | This field holds the singleton instance of this class. | |
interlock | This field holds the instance of the internal synchronization object. | |
outputName | This field holds the file name of the standard output stream. |
Please be aware, this class cannot be used on platforms other than Windows! This is because of this class uses the Win32-API to accomplish its tasks.