Skip to content

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.

Declaration
public sealed class AnsiInputDecoder
Declaration
public void Feed(byte[] data)
Type Name
System.Byte[] data

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.

Declaration
public void Feed(byte[] data, int offset, int count)
Type Name
System.Byte[] data
System.Int32 offset
System.Int32 count