Add isTTY function (#1622)

This commit is contained in:
Dmitry Sharshakov 2019-02-03 06:05:30 +03:00 committed by Ryan Dahl
parent 1d48e025d3
commit 181b03273c
8 changed files with 91 additions and 3 deletions

View file

@ -27,3 +27,8 @@ test(function osPid() {
console.log("pid", deno.pid);
assert(deno.pid > 0);
});
// See complete tests in tools/is_tty_test.py
test(function osIsTTYSmoke() {
console.log(deno.isTTY());
});