tty
Source: lib/tty.js (pure JS)
Node-style TTY stream wrappers.
Exports
| Export | Args | Kind | Description |
|---|---|---|---|
ReadStream(fd) | 1 | function | Wraps a TTY input descriptor (raw mode, etc.). |
WriteStream(fd) | 1 | function | Wraps a TTY output descriptor (columns/rows, color support). |
isatty | — | re-export | Re-exported from os; tests whether a descriptor is a TTY. |
Export list
Generated by utilities/doc-api.js from the tty dump of utilities/api-surface.sh: 37 members. Edit the text above this block, not the block.
Functions: isatty()
ReadStream
class, constructible
- methods:
addListener(),emit(),listenerCount(),off(),on(),once(),removeAllListeners(),removeListener(),setRawMode() - properties:
rawMode (get),[Symbol.toStringTag]
WriteStream
class, constructible
- methods:
addListener(),clearLine(),clearScreenDown(),cursorTo(),emit(),getColorDepth(),getWindowSize(),hasColors(),listenerCount(),moveCursor(),off(),on(),once(),removeAllListeners(),removeListener(),write() - properties:
[Symbol.toStringTag]
default
object
- static methods:
ReadStream(),WriteStream(),isatty()