2
"source": "doc/api/tty.markdown",
8
"stabilityText": "Stable",
9
"desc": "<p>Use <code>require('tty')</code> to access this module.\n\n</p>\n<p>Example:\n\n</p>\n<pre><code>var tty = require('tty');\nprocess.stdin.resume();\ntty.setRawMode(true);\nprocess.stdin.on('keypress', function(char, key) {\n if (key && key.ctrl && key.name == 'c') {\n console.log('graceful exit');\n process.exit()\n }\n});</code></pre>\n",
12
"textRaw": "tty.isatty(fd)",
15
"desc": "<p>Returns <code>true</code> or <code>false</code> depending on if the <code>fd</code> is associated with a\nterminal.\n\n\n</p>\n",
27
"textRaw": "tty.setRawMode(mode)",
30
"desc": "<p><code>mode</code> should be <code>true</code> or <code>false</code>. This sets the properties of the current\nprocess's stdin fd to act either as a raw device or default.\n</p>\n",