We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 678fa31 commit 0ef8a86Copy full SHA for 0ef8a86
1 file changed
lib/readline.js
@@ -46,15 +46,21 @@ function Interface (output, completer) {
46
47
this.history = [];
48
this.historyIndex = -1;
49
+
50
+ exports.columns = process.binding('stdio').getColumns();
51
52
+ if (process.listeners("SIGWINCH").length === 0) {
53
+ process.on("SIGWINCH", function () {
54
55
+ });
56
+ }
57
}
58
59
60
inherits(Interface, EventEmitter);
61
62
Interface.prototype.__defineGetter__("columns", function () {
- if (this.enabled) {
- return stdio.getColumns();
- }
63
+ return exports.columns;
64
});
65
66
Interface.prototype.setPrompt = function (prompt, length) {
0 commit comments