summaryrefslogtreecommitdiff
path: root/cli/tsc/dts/lib.deno.ns.d.ts
diff options
context:
space:
mode:
authorAsher Gomez <ashersaupingomez@gmail.com>2024-02-19 01:27:44 +1100
committerGitHub <noreply@github.com>2024-02-18 07:27:44 -0700
commitc1fac11dfaf9d656b7361708d9faab1916eac846 (patch)
tree151c729aa2774c21924b0bb8a1c6aa6daffea854 /cli/tsc/dts/lib.deno.ns.d.ts
parent7abd72a80f0aafe071ad7d298b48e0da741cc9f3 (diff)
feat(fs): `Deno.FsFile.{isTerminal,setRaw}()` (#22234)
Closes #22229. --------- Signed-off-by: Asher Gomez <ashersaupingomez@gmail.com>
Diffstat (limited to 'cli/tsc/dts/lib.deno.ns.d.ts')
-rw-r--r--cli/tsc/dts/lib.deno.ns.d.ts25
1 files changed, 25 insertions, 0 deletions
diff --git a/cli/tsc/dts/lib.deno.ns.d.ts b/cli/tsc/dts/lib.deno.ns.d.ts
index 720f7fc94..787c1a225 100644
--- a/cli/tsc/dts/lib.deno.ns.d.ts
+++ b/cli/tsc/dts/lib.deno.ns.d.ts
@@ -2668,6 +2668,31 @@ declare namespace Deno {
utimeSync(atime: number | Date, mtime: number | Date): void;
/** **UNSTABLE**: New API, yet to be vetted.
*
+ * Checks if the file resource is a TTY (terminal).
+ *
+ * ```ts
+ * // This example is system and context specific
+ * using file = await Deno.open("/dev/tty6");
+ * file.isTerminal(); // true
+ * ```
+ */
+ isTerminal(): boolean;
+ /** **UNSTABLE**: New API, yet to be vetted.
+ *
+ * Set TTY to be under raw mode or not. In raw mode, characters are read and
+ * returned as is, without being processed. All special processing of
+ * characters by the terminal is disabled, including echoing input
+ * characters. Reading from a TTY device in raw mode is faster than reading
+ * from a TTY device in canonical mode.
+ *
+ * ```ts
+ * using file = await Deno.open("/dev/tty6");
+ * file.setRaw(true, { cbreak: true });
+ * ```
+ */
+ setRaw(mode: boolean, options?: SetRawOptions): void;
+ /** **UNSTABLE**: New API, yet to be vetted.
+ *
* Acquire an advisory file-system lock for the file.
*
* @param [exclusive=false]