Class AnsiInputDecoder
The inverse of DarkEffekt.Terminal.InputEncoder: reads the bytes a terminal sends and raises them as input events. For a program hosted through DarkEffekt.Terminal.ITerminalProgram that wants keys and mouse events and not bytes. Mouse reports are read in the SGR encoding, which the program asks for with ESC [ ? 1006 h.
Assembly: DarkEffekt.Terminal.Core
Section titled “Assembly: DarkEffekt.Terminal.Core”public sealed class AnsiInputDecoderMethods
Section titled “Methods”Feed(byte[])
Section titled “Feed(byte[])”public void Feed(byte[] data)Parameters
Section titled “Parameters”| Type | Name |
|---|---|
System.Byte[] |
data |
Feed(byte[], int, int)
Section titled “Feed(byte[], int, int)”Reads a chunk of input. An ESC that ends the chunk is the Escape key; an ESC with more behind it starts a sequence or marks Alt.
public void Feed(byte[] data, int offset, int count)Parameters
Section titled “Parameters”| Type | Name |
|---|---|
System.Byte[] |
data |
System.Int32 |
offset |
System.Int32 |
count |