vue-web-terminal
Version:
A beautiful web-side command line window plugin (native simulation). 一个漂亮的网页命令行插件(原生模拟)
47 lines (46 loc) • 1.79 kB
TypeScript
export declare const ANSI_NUL = "\0";
export declare const ANSI_BEL = "\u0007";
export declare const ANSI_BS = "\b";
export declare const ANSI_CR = "\r";
export declare const ANSI_ENQ = "\u0005";
export declare const ANSI_FF = "\f";
export declare const ANSI_LF = "\n";
export declare const ANSI_SO = "\u000E";
export declare const ANSI_SP = " ";
export declare const ANSI_TAB = "\t";
export declare const ANSI_VT = "\v";
export declare const ANSI_SI = "\u000F";
export declare const ANSI_ESC = "\u001B";
export declare const ANSI_IND: string;
export declare const ANSI_NEL: string;
export declare const ANSI_HTS: string;
export declare const ANSI_RI: string;
export declare const ANSI_SS2: string;
export declare const ANSI_SS3: string;
export declare const ANSI_DCS: string;
export declare const ANSI_SPA: string;
export declare const ANSI_EPA: string;
export declare const ANSI_SOS: string;
export declare const ANSI_DECID: string;
export declare const ANSI_CSI: string;
export declare const ANSI_ST: string;
export declare const ANSI_OSC: string;
export declare const ANSI_PM: string;
export declare const ANSI_APC: string;
export declare const ANSI_DECPAM: string;
export declare const ANSI_DECPNM: string;
export declare const ANSI_DESIGNATE_CHARSET_0: string;
export declare const ANSI_DESIGNATE_CHARSET_1: string;
export declare const ANSI_DESIGNATE_CHARSET_2: string;
export declare const ANSI_DESIGNATE_CHARSET_3: string;
export declare const ANSI_CHARSET: string;
export declare const ANSI_DECD: string;
/**
* 解析并过滤ANSI Code,目前仅对着色码翻译,其余码过滤
*
* @param str
* @param os windows | mac | linux | unix
* @returns string
* @private
*/
export declare function _parseANSI(str: string, os?: 'windows' | 'mac' | 'linux' | 'unix'): string;