Skip to content
Permalink
Browse files

tty: Remove deprecated setRawMode wrapper

PR-URL: #2528
Reviewed-By: Brian White <mscdex@mscdex.net>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
  • Loading branch information...
geek authored and jasnell committed Aug 24, 2015
1 parent 4cf19ad commit a2c0aa84e0c1ffc299d8e11eebd8a93688e1f4d3
Showing with 0 additions and 14 deletions.
  1. +0 −4 doc/api/tty.markdown
  2. +0 −10 lib/tty.js
@@ -65,8 +65,4 @@ gets updated on "resize" events.
Returns `true` or `false` depending on if the `fd` is associated with a
terminal.

## tty.setRawMode(mode)

Stability: 0 - Deprecated: Use [tty.ReadStream#setRawMode][] (i.e. process.stdin.setRawMode) instead.

[tty.ReadStream#setRawMode]: #tty_rs_setrawmode_mode
@@ -14,16 +14,6 @@ exports.isatty = function(fd) {
};


// backwards-compat
exports.setRawMode = internalUtil.deprecate(function(flag) {
if (!process.stdin.isTTY) {
throw new Error('Can\'t set raw mode on non-tty');
}
process.stdin.setRawMode(flag);
}, 'tty.setRawMode is deprecated. ' +
'Use process.stdin.setRawMode instead.');


function ReadStream(fd, options) {
if (!(this instanceof ReadStream))
return new ReadStream(fd, options);

0 comments on commit a2c0aa8

Please sign in to comment.
You can’t perform that action at this time.