Path: blob/main/third_party/closure-compiler/node-externs/tty.js
6174 views
/*1* Copyright 2012 The Closure Compiler Authors.2*3* Licensed under the Apache License, Version 2.0 (the "License");4* you may not use this file except in compliance with the License.5* You may obtain a copy of the License at6*7* http://www.apache.org/licenses/LICENSE-2.08*9* Unless required by applicable law or agreed to in writing, software10* distributed under the License is distributed on an "AS IS" BASIS,11* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.12* See the License for the specific language governing permissions and13* limitations under the License.14*/1516/**17* @fileoverview Definitions for node's tty module. Depends on the net module.18* @see http://nodejs.org/api/tty.html19* @see https://github.com/joyent/node/blob/master/lib/tty.js20* @externs21* @author Daniel Wirtz <[email protected]>22*/2324/**25BEGIN_NODE_INCLUDE26var tty = require('tty');27END_NODE_INCLUDE28*/2930/**31* @type {Object.<string,*>}32*/33var tty = {};3435/**36* @param {*} fd37* @return {boolean}38*/39tty.isatty = function(fd) {};4041/**42* @param {boolean} mode43*/44tty.setRawMode = function(mode) {};4546/**47* @constructor48* @extends net.Socket49*/50tty.ReadStream = function() {};5152/**53* @type {boolean}54*/55tty.ReadStream.prototype.isRaw;5657/**58* @param {boolean} mode59*/60tty.ReadStream.prototype.setRawMode = function(mode) {};6162/**63* @constructor64* @extends net.Socket65*/66tty.WriteStream = function() {};6768/**69* @type {number}70*/71tty.WriteStream.prototype.columns;7273/**74* @type {number}75*/76tty.WriteStream.prototype.rows;777879