Created
February 3, 2016 19:05
-
-
Save evanlucas/4e5311be6f33b081148f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From 27424988e754bd0dcc752be68e5d36eed96cdeaf Mon Sep 17 00:00:00 2001 | |
From: Evan Lucas <[email protected]> | |
Date: Wed, 3 Feb 2016 13:05:08 -0600 | |
Subject: [PATCH] node: define tty methods for child_processes | |
--- | |
src/node.js | 7 +++++++ | |
1 file changed, 7 insertions(+) | |
diff --git a/src/node.js b/src/node.js | |
index 1f29386..0157a4d 100644 | |
--- a/src/node.js | |
+++ b/src/node.js | |
@@ -643,6 +643,13 @@ | |
writable: true | |
}); | |
stream._type = 'pipe'; | |
+ stream.cursorTo = function() {}; | |
+ stream.moveCursor = function() {}; | |
+ stream.clearLine = function() {}; | |
+ stream.clearScreenDown = function() {}; | |
+ stream.getWindowSize = function() { | |
+ return [0, 0] | |
+ }; | |
break; | |
default: | |
-- | |
2.6.4 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment