flagpole
Version:
Simple and fast DOM integration, headless or headful browser, and REST API testing framework.
59 lines (58 loc) • 2.23 kB
TypeScript
export declare class CliAnsi {
write(...args: string[]): void;
writeLine(...args: string[]): void;
writeLines(...args: string[]): void;
cursorTo(x: number, y: number): string;
cursorMove(x: number, y: number): string;
cursorMoveX(x: number): string;
cursorMoveY(y: number): string;
cursorUp(n?: number): string;
cursorDown(n?: number): string;
cursorLeft(n?: number): string;
cursorRight(n?: number): string;
cursorHome(): string;
cursorPreviousLine(): string;
cursorNextLine(): string;
cursorHide(): string;
cursorShow(): string;
cursorSavePosition(): string;
cursorRestorePosition(): string;
cursorQueryPosition(): string;
eraseLine(): string;
eraseLines(numLines: number): string;
bold(str: string): string;
underlined(str: string): string;
italic(str: string): string;
light(str: string): string;
blink(str: string): string;
inverse(str: string): string;
border(str: string): string;
roundedBorder(str: string): string;
strikethrough(str: string): string;
hidden(str: string): string;
center(str: string, targetLength: number, padChar?: string): string;
left(str: string, targetLength: number, padChar?: string): string;
right(str: string, targetLength: number, padChar?: string): string;
bgBlue(str: string): string;
bgBlack(str: string): string;
bgCyan(str: string): string;
bgGreen(str: string): string;
bgMagenta(str: string): string;
bgRed(str: string): string;
bgWhite(str: string): string;
bgYellow(str: string): string;
bgRgb(str: string, r: number, g: number, b: number): string;
bgCustom(str: string, colorNumber: number): string;
fgBlue(str: string): string;
fgBlack(str: string): string;
fgCyan(str: string): string;
fgGreen(str: string): string;
fgMagenta(str: string): string;
fgRed(str: string): string;
fgWhite(str: string): string;
fgYellow(str: string): string;
fgRgb(str: string, r: number, g: number, b: number): string;
fgCustom(str: string, colorNumber: number): string;
protected _bg(color: string, str: string): string;
protected _fg(color: string, str: string): string;
}