Browse Source

Fixes #2052. Readline get win cols correctly

v0.7.4-release
Ryan Dahl 13 years ago
parent
commit
2d13cdfd2a
  1. 4
      lib/readline.js

4
lib/readline.js

@ -96,12 +96,12 @@ function Interface(input, output, completer) {
this.historyIndex = -1;
var winSize = output.getWindowSize();
exports.columns = winSize[1];
exports.columns = winSize[0];
if (process.listeners('SIGWINCH').length === 0) {
process.on('SIGWINCH', function() {
var winSize = output.getWindowSize();
exports.columns = winSize[1];
exports.columns = winSize[0];
});
}
}

Loading…
Cancel
Save