Skip to content
 
 

Latest commit

 

History

27 提交

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

仓库 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

拉取请求 and stars are highly welcome.

For bugs and feature requests, please create an issue.

关于

🐾 Get the cursor's current position in your terminal.

Resources

Stars

1 star

关注者

1 watching

复刻s

发布

贡献者

Languages