|
|
@ -145,7 +145,7 @@ Interface.prototype._setRawMode = function(mode) { |
|
|
|
if (typeof this.input.setRawMode === 'function') { |
|
|
|
return this.input.setRawMode(mode); |
|
|
|
} |
|
|
|
} |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
Interface.prototype.prompt = function(preserveCursor) { |
|
|
@ -656,8 +656,9 @@ Interface.prototype._ttyWrite = function(s, key) { |
|
|
|
self.pause(); |
|
|
|
self.emit('SIGCONT'); |
|
|
|
} |
|
|
|
// explictly re-enable "raw mode" and move the cursor to the correct
|
|
|
|
// position. See https://github.com/joyent/node/issues/3295.
|
|
|
|
// explictly re-enable "raw mode" and move the cursor to
|
|
|
|
// the correct position.
|
|
|
|
// See https://github.com/joyent/node/issues/3295.
|
|
|
|
self._setRawMode(true); |
|
|
|
self._refreshLine(); |
|
|
|
}; |
|
|
|