-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.d.ts
40 lines (28 loc) · 808 Bytes
/
index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
import TTY from 'tty';
declare interface Sequencer {
currentSequence: string[];
lastSequence: string[];
sequences: string[][];
}
declare interface TransformTTYOptions {
rows?: number;
columns?: number;
defaultParser?: 'terminalJS' | 'ansiTerminal';
crlf?: false;
[key: any]: number | string | boolean;
}
declare class TransformTTY extends TTY.WriteStream {
constructor(options?: TransformTTYOptions);
getCursorPos(): { x: number; y: number };
addSequencer(
add?: (string: string, sequencer: Sequencer) => boolean,
clear?: (string: string, sequencer: Sequencer) => boolean
): void;
getFrames(): string[];
getSequences(): string[][];
getWrites(): string[];
getSequenceStrings(): string[];
toString(): string;
static onlyAnsi(string: string): boolean;
}
export = TransformTTY;