nodejs-mozilla/test/pseudo-tty/stdin-setrawmode.js

10 lines
232 B
JavaScript

'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);