

# [`oro:tty`](/runtime/docs/javascript/tty/)

[`oro:tty`](/runtime/docs/javascript/tty/) exposes terminal streams and TTY detection helpers.

## Examples

Detect interactive terminals before enabling richer output:

```js
import { isatty } from 'oro:tty'

console.log(isatty(0))
console.log(isatty(1))
```

## API reference

<!-- GENERATED: ORO_API_REFERENCE_START -->

### Module specifiers

```text
oro:tty
```

### TypeScript declarations

These declarations are generated from the runtime's published TypeScript surface.

#### [`oro:tty`](/runtime/docs/javascript/tty/)

```ts
declare module "oro:tty" {
    export function WriteStream(fd: any): Writable;
    export function ReadStream(fd: any): Readable;
    export function isatty(fd: any): boolean;
    namespace _default {
        export { WriteStream };
        export { ReadStream };
        export { isatty };
    }
    export default _default;
    import { Writable } from "oro:stream";
    import { Readable } from "oro:stream";
}
```

<!-- GENERATED: ORO_API_REFERENCE_END -->

## See also

- [JavaScript APIs overview](/runtime/docs/javascript/overview/)
- [All module specifiers](/runtime/docs/javascript/all-modules/)
