-
Notifications
You must be signed in to change notification settings - Fork 140
Terminal API
The terminalapi package exposes types that are common to all terminal implementations. This abstraction was created so that users of Termdash can choose which low-level terminal library they prefer.
The public API surface of this package consists of the following:
All terminal implementations must implement this interface.
The ColorMode property specifies which colors can be displayed on the terminal and how are they addressed.
Refer to the following pages which provide a list of colors and their numbers:
- https://jonasjacek.github.io/colors/
- https://superuser.com/questions/783656/whats-the-deal-with-terminal-colors
Colors are set as options on terminal cells. Refer to the Cell API for more details.
This interface represents an input terminal event, which can be one of the following events:
- A keyboard event when a key is pressed.
- A mouse event when a mouse button is pressed or the mouse wheel is rolled.
- A terminal resize event when the size of the terminal window changes.
- An error that occurs at the terminal layer or during event processing.
See a typo, something missing or outright wrong? Feel free to edit the Wiki pages directly, alternatively talk to us.