MCPcopy Create free account
hub / github.com/denoland/std / isTerminal

Method isTerminal

fs/unstable_types.ts:283–283  ·  view source on GitHub ↗

* Checks if the file resource is a TTY (terminal). * * @example Usage * ```ts ignore * // This example is system and context specific * import { open } from "@std/fs/unstable-open"; * using file = await open("/dev/tty6"); * file.isTerminal(); // true * ```

()

Source from the content-addressed store, hash-verified

281 * ```
282 */
283 isTerminal(): boolean;
284 /**
285 * Acquire an advisory file-system lock for the file.
286 *

Callers 5

promptSelectFunction · 0.65
promptMultipleSelectFunction · 0.65
askForCursorPositionSyncFunction · 0.65
promptSecretFunction · 0.65

Implementers 1

NodeFsFilefs/_node_fs_file.ts

Calls

no outgoing calls

Tested by

no test coverage detected