How to use the tty.setRawMode 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 uber / potter / cli / builtin / help / print-help.js View on Github external
function setRaw(mode) {
    return process.stdin.setRawMode ?
        process.stdin.setRawMode(mode) : tty.setRawMode(mode);
}
github sidorares / ansi-vnc / index.js View on Github external
function setRawMode(val) {
  if (process.stdin.setRawMode)
    process.stdin.setRawMode(val);
  else
    require('tty').setRawMode(val);
}
github carlos8f / node-cli-prompt / index.js View on Github external
function setRawMode(mode) {
    if (process.stdin.setRawMode) {
      process.stdin.setRawMode(mode);
    }
    else if (process.stderr.isTTY) {
      tty.setRawMode(mode);
    }
  }
  if (hideInput) setRawMode(true);

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

50 / 100
Full package analysis