1.0.2 • Published 10 years ago

term-cursor v1.0.2

Weekly downloads
17
License
-
Repository
github
Last release
10 years ago

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

1.0.2

10 years ago

1.0.1

10 years ago

1.0.0

10 years ago

0.0.1

10 years ago