mirror of
https://github.com/harivansh-afk/clanker-agent.git
synced 2026-04-17 05:00:17 +00:00
pull into local
This commit is contained in:
parent
dd0c89d8aa
commit
d0f85b30cc
50 changed files with 26814 additions and 86 deletions
22
packages/coding-agent/companion-out/export-html/ansi-to-html.d.ts
vendored
Normal file
22
packages/coding-agent/companion-out/export-html/ansi-to-html.d.ts
vendored
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
/**
|
||||
* ANSI escape code to HTML converter.
|
||||
*
|
||||
* Converts terminal ANSI color/style codes to HTML with inline styles.
|
||||
* Supports:
|
||||
* - Standard foreground colors (30-37) and bright variants (90-97)
|
||||
* - Standard background colors (40-47) and bright variants (100-107)
|
||||
* - 256-color palette (38;5;N and 48;5;N)
|
||||
* - RGB true color (38;2;R;G;B and 48;2;R;G;B)
|
||||
* - Text styles: bold (1), dim (2), italic (3), underline (4)
|
||||
* - Reset (0)
|
||||
*/
|
||||
/**
|
||||
* Convert ANSI-escaped text to HTML with inline styles.
|
||||
*/
|
||||
export declare function ansiToHtml(text: string): string;
|
||||
/**
|
||||
* Convert array of ANSI-escaped lines to HTML.
|
||||
* Each line is wrapped in a div element.
|
||||
*/
|
||||
export declare function ansiLinesToHtml(lines: string[]): string;
|
||||
//# sourceMappingURL=ansi-to-html.d.ts.map
|
||||
Loading…
Add table
Add a link
Reference in a new issue