bfs-process
Version:
An emulation of Node's process module. Used in BrowserFS.
30 lines (29 loc) • 785 B
TypeScript
/// <reference types="node" />
import { Duplex } from 'stream';
export default class TTY extends Duplex {
isRaw: boolean;
columns: number;
rows: number;
isTTY: true;
private _bufferedWrites;
private _waitingForWrites;
constructor();
/**
* Toggle raw mode.
*/
setRawMode(mode: boolean): void;
/**
* [BFS] Update the number of columns available on the terminal.
*/
changeColumns(columns: number): void;
/**
* [BFS] Update the number of rows available on the terminal.
*/
changeRows(rows: number): void;
/**
* Returns 'true' if the given object is a TTY.
*/
static isatty(fd: any): fd is TTY;
_write(chunk: any, encoding: string, cb: Function): void;
_read(size: number): void;
}