Skip to content

Termbox is a deno package that provides a cell based view for text terminals.

License

Notifications You must be signed in to change notification settings

deno-library/termbox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

termbox

JSR Version

Termbox is a deno package that provides a cell based view for text terminals.

Usage

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

class TermBox {
  constructor(size?: Size);
  flush(): Promise<void>;
  size(): Size;
  end(): void;

  setCell(x: number, y: number, char: string): void;

  cursorHide(): Promise<void>;
  cursorShow(): Promise<void>;
  cursorSave(): Promise<void>;
  cursorRestore(): Promise<void>;
  cursorTo(x: number, y: number): Promise<void>;
  cursorPosition(): Promise<Size>;

  screenClear(): Promise<void>;
  screenReset(): Promise<void>;
}

interface Size {
  columns: number;
  rows: number;
}

example

https://github.com/deno-library/sl

About

Termbox is a deno package that provides a cell based view for text terminals.

Resources

License

Stars

Watchers

Forks

Sponsor this project

Packages

No packages published