Skip to content

State Class

Represents the state of an ANSI.SYS processor.

C#
public class State

Inheritance object

Creates a new object to track the state of the ansi cursor.

C#
public State()

Indicates that the state is using bold colors.

C#
public bool Bold { get; set; }

Indicates that the state is printing reverse colors.

C#
public bool Reverse { get; set; }

Not supported.

C#
public bool Concealed { get; set; }

Foreground color for the state of the ANSI.SYS processor.

C#
public Color Foreground { get; set; }

Background color for the state of the ANSI.SYS processor.

C#
public Color Background { get; set; }

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.

C#
public void AnsiCorrectPrintColor()

Resets all of the print appearance and ansi settings back to the default.

C#
public void AnsiResetVideo()