restore-cursor

Gracefully restore the CLI cursor on exit

MIT 8 个版本
安装
npm install restore-cursor
yarn add restore-cursor
pnpm add restore-cursor
bun add restore-cursor
README

restore-cursor

Gracefully restore the CLI cursor on exit

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

It does nothing if run in a non-TTY context.

Install

npm install restore-cursor

Usage

import restoreCursor from 'restore-cursor';

restoreCursor();
版本列表
5.1.0 2024-07-26
5.0.0 2023-09-28
4.0.0 2021-08-23
3.1.0 2019-04-26
3.0.0 2019-04-17
2.0.0 2017-01-09
1.0.1 2015-09-18
1.0.0 2014-08-31