GitShow/sindresorhus/restore-cursor
sindresorhus

restore-cursor

Gracefully restore the CLI cursor on exit

by sindresorhus
Star on GitHubForknpm

JavaScript

41 stars8 forks6 contributorsQuiet · 1y agoSince 2014v5.1.0MIT

Meet the team

See all 6 on GitHub →
sindresorhus
sindresorhus18 contributions
BendingBender
BendingBender1 contribution
michaelmior
michaelmior1 contribution
Richienb
Richienb1 contribution
wooorm
wooorm1 contribution
isaacs
isaacs1 contribution

Languages

View on GitHub →
JavaScript97.6%
TypeScript2.4%

Commit activity

Last 12 weeks · 0 commits

Full graph →

Community health

4 of 6 standards met

Community profile →
85
✓README✓License✓Contributing✓Code of Conduct○Issue Template○PR Template

Recent fixes

View closed PRs →
isaacs
do not print control code to non-terminalsMergedPR

This avoids all the lines getting printed on GitHub Actions, which does support colors, but does not support ANSI cursor control codes. If the terminal is not a tty, then there's no cursor to show or hide. Also, prevents printing the control code to stderr if stdout is a terminal and stderr isn't, and vice versa, for the same reason.

isaacs · 2y ago
Richienb
Move to GitHub ActionsMergedPR
Richienb · 5y ago
snowman
why not output cursorClosedIssue

i don't know what exactly i'm talking about here...

snowman · 6y ago
Structured data for AI agents

Repository: sindresorhus/restore-cursor. Description: Gracefully restore the CLI cursor on exit Stars: 41, Forks: 8. Primary language: JavaScript. Languages: JavaScript (97.6%), TypeScript (2.4%). License: MIT. Latest release: v5.1.0 (1y ago). Open PRs: 0, open issues: 0. Last activity: 1y ago. Community health: 85%. Top contributors: sindresorhus, BendingBender, michaelmior, Richienb, wooorm, isaacs.

·@ofershap

Replace github.com with gitshow.dev