{"repo":"terkelg/sisteransi","free":true,"listed":false,"github":"https://github.com/terkelg/sisteransi","clone":"git clone https://github.com/terkelg/sisteransi.git","description":"ANSI escape codes for some terminal swag.","language":"TypeScript","stars":81,"topics":["ansi","terminal","cli"],"license":"MIT","category":"cli-tools","readme_excerpt":"sister ANSI Ansi escape codes faster than you can say \"Bam bam\". Installation Note: sisteransi 2.0 is ESM-only and needs Node.js = 20 . import works on any Node 20+, and CommonJS can require() it on Node 20.19+ (where require(esm) is unflagged). Stay on the 1.x line only if you're on older Node. (Contributing? The test suite runs the TypeScript source directly via Node's type stripping, so local development needs Node.js = 22.) Usage API cursor to(x, y) Set the absolute position of the cursor. x0 y0 is the top left of the screen. move(x, y) Set the position of the cursor relative to its current position. up(count = 1) Move cursor up a specific amount of rows. Default is 1 . down(count = 1) Move cursor down a specific amount of rows. Default is 1 . forward(count = 1) Move cursor forward a specific amount of rows. Default is 1 . backward(count = 1) Move cursor backward a specific amount of rows. Default is 1 . nextLine(count = 1) Move cursor to the next line a specific amount of lines. Default is 1 . prevLine(count = 1) Move cursor to the previous a specific amount of lines. Default is 1 . left Move cursor to the left side. hide Hide cursor. show Show cursor. save Save cursor position. restore Restore cursor position. scroll up(count = 1) Scroll display up a specific amount of lines. Default to 1 . down(count = 1) Scroll display down a specific amount of lines. Default to 1 . erase screen Erase the screen and move the cursor the top left position. up(count = 1) Erase the screen","default_branch":null,"files":null,"tree":[],"storefront":"/r/terkelg","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/terkelg/sisteransi/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}