projects
/
platform
/
upstream
/
nodejs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6cacb9a
)
tty: emit "error" instead of throwing when getWindowSize() fails
author
Nathan Rajlich
<nathan@tootallnate.net>
Tue, 1 May 2012 01:51:20 +0000
(18:51 -0700)
committer
Nathan Rajlich
<nathan@tootallnate.net>
Tue, 1 May 2012 01:51:20 +0000
(18:51 -0700)
lib/tty.js
patch
|
blob
|
history
diff --git
a/lib/tty.js
b/lib/tty.js
index 72dd88d2bf61ca2b218723dc6b30f3c6ab9e574b..2d66abc407fd1a07f9b619da94266e30f258051f 100644
(file)
--- a/
lib/tty.js
+++ b/
lib/tty.js
@@
-101,7
+101,7
@@
WriteStream.prototype._refreshSize = function() {
var oldRows = this.rows;
var winSize = this._handle.getWindowSize();
if (!winSize) {
- th
row errnoException(errno, 'getWindowSize'
);
+ th
is.emit('error', errnoException(errno, 'getWindowSize')
);
}
var newCols = winSize[0];
var newRows = winSize[1];