Lines Matching refs:isatty
5 const { isatty } = require('tty');
7 strictEqual(isatty(0), true, 'stdin reported to not be a tty, but it is');
8 strictEqual(isatty(1), true, 'stdout reported to not be a tty, but it is');
9 strictEqual(isatty(2), true, 'stderr reported to not be a tty, but it is');
11 strictEqual(isatty(-1), false, '-1 reported to be a tty, but it is not');
12 strictEqual(isatty(55555), false, '55555 reported to be a tty, but it is not');
13 strictEqual(isatty(2 ** 31), false, '2^31 reported to be a tty, but it is not');
14 strictEqual(isatty(1.1), false, '1.1 reported to be a tty, but it is not');
15 strictEqual(isatty('1'), false, '\'1\' reported to be a tty, but it is not');
16 strictEqual(isatty({}), false, '{} reported to be a tty, but it is not');
17 strictEqual(isatty(() => {}), false,