This repository has been archived by the owner on Apr 13, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.d.ts
57 lines (42 loc) · 1.6 KB
/
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
declare module "ansikit" {
interface AnsiKitExtras {
colors: string[];
styles: string[];
}
class AnsiKit {
static blockCursor: number;
static blockCursorSteady: number;
static underlineCursor: number;
static underlineCursorSteady: number;
static lineCursor: number;
static lineCursorSteady: number;
static clear(scrollback?: boolean): typeof AnsiKit;
static clearFromPos(): typeof AnsiKit;
static clearLine(): typeof AnsiKit;
static clearToPos(): typeof AnsiKit;
static color256(color?: number): typeof AnsiKit;
static cursorDown(x?: number): typeof AnsiKit;
static cursorLeft(x?: number): typeof AnsiKit;
static cursorPos(): Promise<number[]>;
static cursorRight(x?: number): typeof AnsiKit;
static cursorStyle(style?: number): typeof AnsiKit;
static cursorTo(x?: number, y?: number): typeof AnsiKit;
static cursorUp(x?: number): typeof AnsiKit;
static eScreen(): typeof AnsiKit;
static get extras(): AnsiKitExtras;
static format(text: string): string;
static print(text: string): typeof AnsiKit;
static printCode(code: string | number, terminate?: boolean): typeof AnsiKit;
static printCSI(code?: string | number, end?: string): typeof AnsiKit;
static println(text?: string): typeof AnsiKit;
static reset(): typeof AnsiKit;
static restoreCursor(): typeof AnsiKit;
static restoreState(): typeof AnsiKit;
static rgb(r?: number, g?: number, b?: number): typeof AnsiKit;
static saveCursor(): typeof AnsiKit;
static saveState(): typeof AnsiKit;
static setTitle(text?: string): typeof AnsiKit;
static showCursor(): typeof AnsiKit;
}
export = AnsiKit;
}