Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save evanlucas/4e5311be6f33b081148f to your computer and use it in GitHub Desktop.
Save evanlucas/4e5311be6f33b081148f to your computer and use it in GitHub Desktop.
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