Class UIAnsiProgram
Runs an interface over escape sequences, as an DarkEffekt.Terminal.ITerminalProgram: it works through any connection and in any terminal, at the cost of encoding every frame. Each frame it writes only the cells that changed. It takes over the alternate screen and hides the cursor, and puts both back when it stops.
Assembly: DarkEffekt.Terminal.UI
Section titled “Assembly: DarkEffekt.Terminal.UI”public sealed class UIAnsiProgram : ITerminalProgram, ITerminalTickImplements:
DarkEffekt.Terminal.ITerminalProgram, DarkEffekt.Terminal.ITerminalTick
Properties
Section titled “Properties”public TerminalUI UI { get; }ReportHover
Section titled “ReportHover”Ask the terminal to report the pointer as it moves with no button held. Set before Start.
public bool ReportHover { get; set; }Methods
Section titled “Methods”Start(IProgramHost)
Section titled “Start(IProgramHost)”public void Start(IProgramHost host)Parameters
Section titled “Parameters”| Type | Name |
|---|---|
| DarkEffekt.Terminal.IProgramHost | host |
Stop()
Section titled “Stop()”public void Stop()OnInput(byte[])
Section titled “OnInput(byte[])”public void OnInput(byte[] data)Parameters
Section titled “Parameters”| Type | Name |
|---|---|
System.Byte[] |
data |
OnResize(int, int)
Section titled “OnResize(int, int)”public void OnResize(int cols, int rows)Parameters
Section titled “Parameters”| Type | Name |
|---|---|
System.Int32 |
cols |
System.Int32 |
rows |
Tick(float)
Section titled “Tick(float)”public void Tick(float deltaSeconds)Parameters
Section titled “Parameters”| Type | Name |
|---|---|
System.Single |
deltaSeconds |