term-cursor

1.0.2 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i term-cursor

Weekly Downloads

3

Version

1.0.2

License

none

Last publish

Collaborators

  • towry