Class AnsiInputEncoder
Input events as the bytes a VT or xterm host expects, following the modes the host set on the emulator: the keyboard modes, bracketed paste, and the mouse tracking mode and encoding. A locked keyboard (KAM) drops typed input, and local echo (SRM off) shows it on the emulator as well as sending it. Key releases and focus changes have no encoding and are dropped.
Assembly: DarkEffekt.Terminal.Core
Section titled “Assembly: DarkEffekt.Terminal.Core”public sealed class AnsiInputEncoder : ITerminalInputImplements:
DarkEffekt.Terminal.ITerminalInput
Methods
Section titled “Methods”OnKey(in TermKeyEvent)
Section titled “OnKey(in TermKeyEvent)”A non-text key: arrows, function keys, Enter, Tab, and the rest of DarkEffekt.Terminal.TermKey.
public void OnKey(in TermKeyEvent e)Parameters
Section titled “Parameters”| Type | Name |
|---|---|
| DarkEffekt.Terminal.TermKeyEvent | e |
OnChar(char, TermModifiers)
Section titled “OnChar(char, TermModifiers)”A typed character, or a letter held with Ctrl or Alt.
public void OnChar(char c, TermModifiers modifiers)Parameters
Section titled “Parameters”| Type | Name |
|---|---|
System.Char |
c |
| DarkEffekt.Terminal.TermModifiers | modifiers |
OnPaste(string)
Section titled “OnPaste(string)”Text pasted from the clipboard.
public void OnPaste(string text)Parameters
Section titled “Parameters”| Type | Name |
|---|---|
System.String |
text |
OnMouse(in TermMouseEvent)
Section titled “OnMouse(in TermMouseEvent)”public void OnMouse(in TermMouseEvent e)Parameters
Section titled “Parameters”| Type | Name |
|---|---|
| DarkEffekt.Terminal.TermMouseEvent | e |
OnFocus(bool)
Section titled “OnFocus(bool)”The terminal gained or lost keyboard focus.
public void OnFocus(bool focused)Parameters
Section titled “Parameters”| Type | Name |
|---|---|
System.Boolean |
focused |