Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions lib/tty.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ function ReadStream(fd, options) {
}
inherits(ReadStream, net.Socket);

ReadStream.prototype.setRawMode = function(flag) {
ReadStream.prototype.setRawMode = function setRawMode(flag) {
flag = !!flag;
this._handle.setRawMode(flag);
this.isRaw = flag;
Expand Down Expand Up @@ -103,7 +103,7 @@ WriteStream.prototype.isTTY = true;

WriteStream.prototype.getColorDepth = getColorDepth;

WriteStream.prototype._refreshSize = function() {
WriteStream.prototype._refreshSize = function _refreshSize() {
const oldCols = this.columns;
const oldRows = this.rows;
const winSize = new Array(2);
Expand All @@ -121,19 +121,19 @@ WriteStream.prototype._refreshSize = function() {
};

// Backwards-compat
WriteStream.prototype.cursorTo = function(x, y) {
WriteStream.prototype.cursorTo = function cursorTo(x, y) {
readline.cursorTo(this, x, y);
};
WriteStream.prototype.moveCursor = function(dx, dy) {
WriteStream.prototype.moveCursor = function moveCursor(dx, dy) {
readline.moveCursor(this, dx, dy);
};
WriteStream.prototype.clearLine = function(dir) {
WriteStream.prototype.clearLine = function clearLine(dir) {
readline.clearLine(this, dir);
};
WriteStream.prototype.clearScreenDown = function() {
WriteStream.prototype.clearScreenDown = function clearScreenDown() {
readline.clearScreenDown(this);
};
WriteStream.prototype.getWindowSize = function() {
WriteStream.prototype.getWindowSize = function getWindowSize() {
return [this.columns, this.rows];
};

Expand Down