{ } qjs-modules

tty

Source: lib/tty.js (pure JS)

Node-style TTY stream wrappers.

Exports

ExportArgsKindDescription
ReadStream(fd)1functionWraps a TTY input descriptor (raw mode, etc.).
WriteStream(fd)1functionWraps a TTY output descriptor (columns/rows, color support).
isatty—re-exportRe-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()