How to use the tty.WriteStream function in tty

To help you get started, we’ve selected a few tty examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github microsoft / napajs / lib / core / process.js View on Github external
function createWritableStdioStream(fd) {
    var tty = require('tty');
    var stream = new tty.WriteStream(fd);
    stream._type = 'tty';

    if (stream._handle && stream._handle.unref) {
        stream._handle.unref();
    }

    stream.fd = fd;
    stream._isStdio = true;

    return stream;
}
github nodyn / nodyn / src / main / javascript / node.js View on Github external
get: function() {
      if (!this._stdout) {
        if ( this.terminal ) {
          this._stdout = new tty.WriteStream( this.terminal );
        } else {
          this._stdout = new streams.OutputStream( System.out );
        }
        this._stdout._start();
      }
      return this._stdout;
    }
  });

tty

This package name is not currently in use, but was formerly occupied by another package. To avoid malicious use, npm is hanging on to the package name, but loosely, and we'll probably give it to you if you want it.

ISC
Latest version published 8 years ago

Package Health Score

53 / 100
Full package analysis