Files
azuredatastudio/src/typings/modules/ansi_up/index.d.ts
Raj 71c14a0837 Output view changes (#3146)
* 1133: Notebook file registration changes

* File registration stuff

* Yarn files

* Outputview Changes

* Misc changes

* Changes to code component name space

* Output view changes

* notebook output view changes

* Latest changes

* Output view changes

* Code review changes on output view

* CSS file and misc changes
2018-11-07 14:19:33 -08:00

51 lines
1.3 KiB
TypeScript

// Generated by typings
// Source: node_modules/ansi_up/dist/ansi_up.d.ts
declare module 'ansi_up' {
export interface AU_Color {
rgb: number[];
class_name: string;
}
export interface TextWithAttr {
fg: AU_Color;
bg: AU_Color;
bold: boolean;
text: string;
}
export interface Formatter {
transform(fragment: TextWithAttr, instance: AnsiUp): any;
compose(segments: any[], instance: AnsiUp): any;
}
function rgx(tmplObj: any, ...subst: any[]): RegExp;
export default class AnsiUp {
VERSION: string;
ansi_colors: {
rgb: number[];
class_name: string;
}[][];
htmlFormatter: Formatter;
textFormatter: Formatter;
private palette_256;
private fg;
private bg;
private bold;
private _use_classes;
private _escape_for_html;
private _sgr_regex;
private _buffer;
constructor();
use_classes: boolean;
escape_for_html: boolean;
private setup_256_palette();
private old_escape_for_html(txt);
private old_linkify(txt);
private detect_incomplete_ansi(txt);
private detect_incomplete_link(txt);
ansi_to(txt: string, formatter: Formatter): any;
ansi_to_html(txt: string): string;
ansi_to_text(txt: string): string;
private with_state(text);
private handle_incomplete_sequences(chunks);
private process_ansi(block);
}
}