Skip to content
ConsoleMonster

API Reference

Class

VtInputDecoder

Namespace ConsoleMonster.Input
Assembly ConsoleMonster
Modifiers sealed

Decodes VT and xterm terminal input into normalized input events.

Inheritance

  • Object
  • VtInputDecoder

Constructors

public VtInputDecoder() #

Creates an empty VT input decoder.

Methods

public Void Feed(String text, List<InputEvent> output) #
Returns: Void

Decodes available terminal input and appends complete events to output.

Parameters

text System.String requiredposition: 0
The characters read from the terminal.
output System.Collections.Generic.List<ConsoleMonster.Input.InputEvent> requiredposition: 1
The destination event list.
public Void Flush(List<InputEvent> output) #
Returns: Void

Resolves an incomplete escape after a quiet period; an unfinished paste remains buffered.

Parameters

output System.Collections.Generic.List<ConsoleMonster.Input.InputEvent> requiredposition: 0
The destination event list.

Properties

public Boolean HasPending { get; } #

Whether a partial escape sequence, paste, or UTF-16 surrogate is buffered.