import * as tui from "https://deno.land/x/tui@1.0.0-RC/mod.ts";
Classes
Combines multiple async iterators into one | |
Event that defines changes regarding given component | |
Creates array that automatically sorts elements using | |
c Tui | |
Typed version of EventTarget |
Variables
ANSI escape code to clear screen | |
ANSI escape code to disable mouse handling | |
ANSI escape code to enable mouse handling | |
ANSI escape code to hide terminal cursor | |
ANSI escape code to show terminal cursor | |
Regexp that allows for extracting unicode sequences that are supposed to represent single character |
Functions
Clamp {number} between {min} and {max} | |
Used as placeholder style when one is not supplied, returns the input | |
f fits | Check whether {number} fits in <{min}, {max}> range |
Check whether {column} and {row} fit in {rectangle} boundaries | |
| |
Intercepts keypresses from | |
| |
Inserts string into string on given index | |
Check whether character is full width | |
Get ANSI escape code for moving cursor to given location | |
Normalize {value} between 0 and 1 | |
Read keypresses from given stdin (except for Windows) and then parse them.
On Windows keys are read by calling | |
Asynchronously sleep for {time} milliseconds | |
Strips string of all styles | |
Returns real text width |
Interfaces
Base theme used to style components, can be expanded upon | |