Skip to content
This repository has been archived by the owner on Mar 10, 2021. It is now read-only.

towry-archived/term-cursor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Move the cursor around on terminal.

Installation

$ npm install term-cursor

Usage

The parameter for cursor.{up|left|down|right} is a number and must be a number.

var cursor = require('term-cursor');

/* move cursor down 2 lines */
cursor.down(2);

/* move cursor right 2 position */
cursor.right(2);

/* write something at the current cursor position,
it's just a wrapper for process.stdout.write */
cursor.write('Hi');

License

MIT


Copyright(c) 2014 Towry Wang http://towry.me

About

[Node.js] Move cursor around on terminal.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published