https://github.com/fabiospampinato/tiny-cursor
A tiny library for hiding and showing the cursor in the terminal.
https://github.com/fabiospampinato/tiny-cursor
cli cursor hide show terminal
Last synced: 11 months ago
JSON representation
A tiny library for hiding and showing the cursor in the terminal.
- Host: GitHub
- URL: https://github.com/fabiospampinato/tiny-cursor
- Owner: fabiospampinato
- License: mit
- Created: 2022-02-08T21:29:10.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-09-24T16:28:51.000Z (almost 3 years ago)
- Last Synced: 2024-11-28T07:35:06.518Z (over 1 year ago)
- Topics: cli, cursor, hide, show, terminal
- Language: TypeScript
- Homepage:
- Size: 6.84 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: license
Awesome Lists containing this project
README
# Tiny Cursor
A tiny library for hiding and showing the cursor in the terminal.
## Install
```sh
npm install tiny-cursor
```
## Usage
```ts
import Cursor from 'tiny-cursor';
Cursor.has (); // => true, the cursor is visible
Cursor.hide ();
Cursor.has (); // => false, the cursor is not visible
Cursor.show ();
Cursor.has (); // => true, the cursor is visible
Cursor.toggle ();
Cursor.has (); // => false, the cursor is not visible
```
## License
MIT © Fabio Spampinato