https://github.com/deno-library/termbox
Termbox is a deno package that provides a cell based view for text terminals.
https://github.com/deno-library/termbox
Last synced: about 1 month ago
JSON representation
Termbox is a deno package that provides a cell based view for text terminals.
- Host: GitHub
- URL: https://github.com/deno-library/termbox
- Owner: deno-library
- License: mit
- Created: 2024-01-04T01:31:01.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-11-18T08:50:04.000Z (6 months ago)
- Last Synced: 2025-02-10T03:48:04.706Z (3 months ago)
- Language: TypeScript
- Size: 14.6 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# termbox
[](https://jsr.io/@deno-library/termbox)
Termbox is a deno package that provides a cell based view for text terminals.
## Usage
```ts
import TermBox from "jsr:@deno-library/termbox";
// or
// import TermBox from "https://deno.land/x/[email protected]/mod.ts";const termbox = new TermBox();
termbox.setCell(x, y, "a");
```## Interface
```ts
class TermBox {
constructor(size?: Size);
flush(): Promise;
size(): Size;
end(): void;setCell(x: number, y: number, char: string): void;
cursorHide(): Promise;
cursorShow(): Promise;
cursorSave(): Promise;
cursorRestore(): Promise;
cursorTo(x: number, y: number): Promise;
cursorPosition(): Promise;screenClear(): Promise;
screenReset(): Promise;
}interface Size {
columns: number;
rows: number;
}
```## example
> https://github.com/deno-library/sl