Class State
Represents the state of an ANSI.SYS processor.
Inherited Members
Namespace: SadConsole.Ansi
Assembly: SadConsole.dll
Syntax
public class State
Constructors
State()
Creates a new object to track the state of the ansi cursor.
Declaration
public State()
Properties
Background
Background color for the state of the ANSI.SYS processor.
Declaration
public Color Background { get; set; }
Property Value
Type | Description |
---|---|
Color |
Bold
Indicates that the state is using bold colors.
Declaration
public bool Bold { get; set; }
Property Value
Type | Description |
---|---|
bool |
Concealed
Not supported.
Declaration
public bool Concealed { get; set; }
Property Value
Type | Description |
---|---|
bool |
Foreground
Foreground color for the state of the ANSI.SYS processor.
Declaration
public Color Foreground { get; set; }
Property Value
Type | Description |
---|---|
Color |
Reverse
Indicates that the state is printing reverse colors.
Declaration
public bool Reverse { get; set; }
Property Value
Type | Description |
---|---|
bool |
Methods
AnsiCorrectPrintColor()
Forces the Background of the print appearance to be the darkened color and the foreground to be bright or not based on the Bold property.
Declaration
public void AnsiCorrectPrintColor()
AnsiResetVideo()
Resets all of the print appearance and ansi settings back to the default.
Declaration
public void AnsiResetVideo()