Skip to content

A tiny library for hiding and showing the cursor in the terminal.

License

Notifications You must be signed in to change notification settings

fabiospampinato/tiny-cursor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tiny Cursor

A tiny library for hiding and showing the cursor in the terminal.

Install

npm install --save tiny-cursor

Usage

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