cursor-restore

Gracefully restore the CLI cursor on exit


Keywords
exit, quit, process, graceful, shutdown, sigterm, sigint, terminate, kill, stop, cli, cursor, ansi, show, term, terminal, console, tty, shell, command-line
License
MIT
Install
npm install cursor-restore@1.0.4

Documentation

Cursor Restore pipeline status

NPM

Gracefully restore the CLI cursor on exit

Prevent the cursor you've hidden interactively from remaining hidden if the process crashes.

Test in Runkit

Click to open Runkit.

Install

$ npm install --save cursor-restore

Usage

const cursorRestore = require('cursor-restore');
cursorRestore();

License

MIT © Yoginth