Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/justjavac/deno_ansi

ANSI escape codes for manipulating the terminal
https://github.com/justjavac/deno_ansi

ansi ansi-escape-codes deno deno-ansi

Last synced: 4 months ago
JSON representation

ANSI escape codes for manipulating the terminal

Awesome Lists containing this project

README

        

# deno_ansi

[ANSI escape codes](http://www.termsys.demon.co.uk/vtansi.htm) for manipulating
the terminal.

> _base on
> [sindresorhus/ansi-escapes](https://github.com/sindresorhus/ansi-escapes)_

[Document](https://doc.deno.land/https://deno.land/x/ansi/mod.ts)

## Usage

```ts
import { cursorLeft, cursorUp } from "https://deno.land/x/ansi/mod.ts";

// Moves the cursor two rows up and to the left
console.log(cursorUp(2) + cursorLeft());
//=> '\u001B[2A\u001B[1000D'
```

## License

[deno_ansi](https://github.com/justjavac/deno_ansi) is released under the MIT
License. See the bundled [LICENSE](./LICENSE) file for details.