Skip to main content

isTerminal

method Deno.FsFile.prototype.isTerminal
Jump to headingFsFile.prototype.isTerminal(): boolean

Checks if the file resource is a TTY (terminal).

// This example is system and context specific
using file = await Deno.open("/dev/tty6");
file.isTerminal(); // true

Return Type Jump to heading

boolean
Back to top