summaryrefslogtreecommitdiff
path: root/test/pseudo-tty
diff options
context:
space:
mode:
Diffstat (limited to 'test/pseudo-tty')
-rw-r--r--test/pseudo-tty/stdin-setrawmode.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/pseudo-tty/stdin-setrawmode.js b/test/pseudo-tty/stdin-setrawmode.js
new file mode 100644
index 0000000000..015c769a9b
--- /dev/null
+++ b/test/pseudo-tty/stdin-setrawmode.js
@@ -0,0 +1,9 @@
+'use strict';
+require('../common');
+const assert = require('assert');
+
+process.stdin.setRawMode(true);
+assert.strictEqual(process.stdin.isRaw, true);
+
+process.stdin.setRawMode(false);
+assert.strictEqual(process.stdin.isRaw, false);