ansi-escapes is by sindresorhus — not by us.
We indexed this project so people can find it. We are not selling it, we host no copy of the code, and we are not affiliated with or endorsed by its authors — get it from them.
Indexed Sep 19, 2026 · 552 stars at index time. Maintainers: claiming verifies your identity and unlocks a higher assurance tier. Removal requests are honored.
Application · for humans & their agents
ansi-escapes
unclaimed listingactively maintainedFreeMIT
ANSI escape codes for manipulating the terminal
by Open Source Community · New publisher
ANSI escape codes for manipulating the terminal
sindresorhus/ansi-escapes is an open-source project by sindresorhus: ANSI escape codes for manipulating the terminal. Indexed here so it can be found — not resold.
It is free. Get it from the upstream repository: https://github.com/sindresorhus/ansi-escapes
From the project's own README (excerpt, reproduced for discovery under its MIT license):
ansi-escapes
> ANSI escape codes for manipulating the terminal
Install
Usage
Or use named exports...
You can also use it in the browser with Xterm.js:
API
cursorTo(x, y?)
Set the absolute position of the cursor. x0 y0 is the top left of the screen.
cursorMove(x, y?)
Set the position of the cursor relative to its current position.
cursorUp(count)
Move cursor up a specific amount of rows. Default is 1.
cursorDown(count)
Move cursor down a specific amount of rows. Default is 1.
cursorForward(count)
Move cursor forward a specific amount of columns. Default is 1.
cursorBackward(count)
Move cursor backward a specific amount of columns. Default is 1.
cursorLeft
Move cursor to the left side.
cursorSavePosition
Save cursor position.
cursorRestorePosition
Restore saved cursor position.
cursorGetPosition
Get cursor position.
cursorNextLine
Move cursor to the next line.
cursorPrevLine
Move cursor to the previous line.
cursorHide
Hide cursor.
cursorShow
Show cursor.
eraseLines(count)
Erase from the current cursor position up the specified amount of rows.
eraseEndLine
Erase from the current cursor position to the end of the current line.
eraseStartLine
Erase from the current cursor position to the start of the current line.
eraseLine
Erase the entire current line.
eraseDown
Erase the screen from the current line down to the bottom of the screen.
eraseUp
Erase the screen from the current line up to the top of the screen.
eraseScreen
Erase the screen and move the cursor the top left position.
scrollUp
Scroll display up one line.
scrollDown
Scroll display down one line.
clearViewport
Clear only the visible terminal screen (viewport) without affecting scrollback buffer or terminal state.
This is a safer alternative to…
01Capabilities
Does
- No capabilities recorded
Doesn’t
- No exclusions declared
02Requirements & stack
Depends on
No declared dependencies
Credentials needed
None declared
Stack
03Community
No endorsements yetNo verified confirmations yet — be the first.
Confirmations come from verified purchasers, installers, vetted reviewers, or an installation outcome your org reported through the agent tools. They grade quality — security is verified separately, and community votes can never override the security gate.
Sign in to confirm — weight comes from verified usage, not vote count.
Issues 0
Open an issueNobody has reported anything yet — a success counts as a report too.
04Trust Passport
Full passport →0/0 automated components pass. An automated score is never a security guarantee.
This listing is unclaimed, so publisher identity cannot be verified and it stays below the “verified” tier by design — that is a statement about the listing, not about the project’s quality. Our automated scans still ran; a maintainer who claims it unlocks identity verification.
05Versions
Full history →| Version | Channel | Released | Notes |
|---|---|---|---|
| 0.0.0 | stable | Sep 19, 2026 | Indexed listing — see the upstream repository for real release history. |