Skip to content

๐Ÿพ Get the cursor's current position in your terminal.

License

Notifications You must be signed in to change notification settings

joaocgreis/get-cursor-position

This branch is 19 commits behind bubkoo/get-cursor-position:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Jun 13, 2016
34a1449 ยท Jun 13, 2016

History

27 Commits
Jun 13, 2016
Mar 5, 2016
Mar 10, 2016
Mar 10, 2016
Mar 3, 2016
Jun 3, 2016
Mar 10, 2016
May 11, 2016
Jun 13, 2016

Repository files navigation

get-cursor-position

Get the cursor's current position in your terminal.

MIT License npm:

Install

$ npm install get-cursor-position --save

Usage

Async:

var getCursorPosition = require('get-cursor-position');

getCursorPosition.async(function(pos) {
    console.log('row: ' + pos.row);
    console.log('col: ' + pos.col);
});

Sync:

var getCursorPosition = require('get-cursor-position');
var pos = getCursorPosition.sync();
console.log('row: ' + pos.row);
console.log('col: ' + pos.col);

Contributing

Pull requests and stars are highly welcome.

For bugs and feature requests, please create an issue.

About

๐Ÿพ Get the cursor's current position in your terminal.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 85.5%
  • JavaScript 12.9%
  • Python 1.6%