File tree 2 files changed +0
-14
lines changed
2 files changed +0
-14
lines changed Original file line number Diff line number Diff line change @@ -65,8 +65,4 @@ gets updated on "resize" events.
65
65
Returns ` true ` or ` false ` depending on if the ` fd ` is associated with a
66
66
terminal.
67
67
68
- ## tty.setRawMode(mode)
69
-
70
- Stability: 0 - Deprecated: Use [tty.ReadStream#setRawMode][] (i.e. process.stdin.setRawMode) instead.
71
-
72
68
[ tty.ReadStream#setRawMode ] : #tty_rs_setrawmode_mode
Original file line number Diff line number Diff line change @@ -14,16 +14,6 @@ exports.isatty = function(fd) {
14
14
} ;
15
15
16
16
17
- // backwards-compat
18
- exports . setRawMode = internalUtil . deprecate ( function ( flag ) {
19
- if ( ! process . stdin . isTTY ) {
20
- throw new Error ( 'Can\'t set raw mode on non-tty' ) ;
21
- }
22
- process . stdin . setRawMode ( flag ) ;
23
- } , 'tty.setRawMode is deprecated. ' +
24
- 'Use process.stdin.setRawMode instead.' ) ;
25
-
26
-
27
17
function ReadStream ( fd , options ) {
28
18
if ( ! ( this instanceof ReadStream ) )
29
19
return new ReadStream ( fd , options ) ;
You can’t perform that action at this time.
0 commit comments