TTY

    When node detects that it is being run inside a TTY context, then process.stdin
    will be a tty.ReadStream instance and process.stdout will be
    a tty.WriteStream instance. The preferred way to check if node is being run in
    a TTY context is to check process.stdout.isTTY:

    Returns true or false depending on if the fd is associated with a
    terminal.

    Deprecated. Use
    (i.e. process.stdin.setRawMode()) instead.

    A Boolean that is initialized to false. It represents the current “raw” state
    of the tty.ReadStream instance.

    mode should be true or . This sets the properties of the
    tty.ReadStream to act either as a raw device or default. isRaw will be set
    to the resulting mode.

    A net.Socket subclass that represents the writable portion of a tty. In normal
    circumstances, process.stdout will be the only tty.WriteStream instance
    ever created (and only when isatty(1) is true).

    A Number that gives the number of rows the TTY currently has. This property
    gets updated on “resize” events.

    function () {}

    Emitted by refreshSize() when either of the or rows properties
    has changed.