summaryrefslogtreecommitdiff
path: root/lib/readline.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/readline.js')
-rw-r--r--lib/readline.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/readline.js b/lib/readline.js
index c35bd1899b..9c7caff60a 100644
--- a/lib/readline.js
+++ b/lib/readline.js
@@ -134,7 +134,7 @@ function Interface(input, output, completer, terminal) {
throw new ERR_INVALID_OPT_VALUE.RangeError('historySize', historySize);
}
- // backwards compat; check the isTTY prop of the output stream
+ // Backwards compat; check the isTTY prop of the output stream
// when `terminal` was not specified
if (terminal === undefined && !(output === null || output === undefined)) {
terminal = !!output.isTTY;
@@ -441,7 +441,7 @@ Interface.prototype._normalWrite = function(b) {
if (newPartContainsEnding) {
this._sawReturnAt = string.endsWith('\r') ? Date.now() : 0;
- // got one or more newlines; process into "line" events
+ // Got one or more newlines; process into "line" events
var lines = string.split(lineEnding);
// Either '' or (conceivably) the unfinished portion of the next line
string = lines.pop();
@@ -449,7 +449,7 @@ Interface.prototype._normalWrite = function(b) {
for (var n = 0; n < lines.length; n++)
this._onLine(lines[n]);
} else if (string) {
- // no newlines this time, save what we have for next time
+ // No newlines this time, save what we have for next time
this._line_buffer = string;
}
};
@@ -869,7 +869,7 @@ Interface.prototype._ttyWrite = function(s, key) {
self.pause();
self.emit('SIGCONT');
}
- // explicitly re-enable "raw mode" and move the cursor to
+ // Explicitly re-enable "raw mode" and move the cursor to
// the correct position.
// See https://github.com/joyent/node/issues/3295.
self._setRawMode(true);
@@ -1078,7 +1078,7 @@ function emitKeypressEvents(stream, iface) {
);
}
} catch (err) {
- // if the generator throws (it could happen in the `keypress`
+ // If the generator throws (it could happen in the `keypress`
// event), we need to restart it.
stream[ESCAPE_DECODER] = emitKeys(stream);
stream[ESCAPE_DECODER].next();