Interface ITerminalInput
Where a terminal’s input goes, as events. The session produces them from the keyboard and the pointer. DarkEffekt.Terminal.AnsiInputEncoder turns them into the bytes a host reads; a surface program takes them as they are.
Assembly: DarkEffekt.Terminal.Core
Section titled “Assembly: DarkEffekt.Terminal.Core”public interface ITerminalInputMethods
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.
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.
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.
void OnPaste(string text)Parameters
Section titled “Parameters”| Type | Name |
|---|---|
System.String |
text |
OnMouse(in TermMouseEvent)
Section titled “OnMouse(in TermMouseEvent)”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.
void OnFocus(bool focused)Parameters
Section titled “Parameters”| Type | Name |
|---|---|
System.Boolean |
focused |