Skip to content

Commit

Permalink
readline: promote _getCursorPos to public api
Browse files Browse the repository at this point in the history
Aliases Interface._getCursorPos to Interface.getCursorPos,
for consumption as a public API.

refs: nodejs#30347
  • Loading branch information
Js-Brecht committed Dec 9, 2019
1 parent d7b8ae7 commit 5f4f780
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/readline.js
Original file line number Diff line number Diff line change
Expand Up @@ -777,6 +777,7 @@ Interface.prototype._getCursorPos = function() {
}
return { cols: cols, rows: rows };
};
Interface.prototype.getCursorPos = Interface.prototype._getCursorPos;


// This function moves cursor dx places to the right
Expand Down

0 comments on commit 5f4f780

Please sign in to comment.