MCPcopy Create free account
hub / github.com/coder/ghostty-web / generateColorText

Function generateColorText

bench/versus.ts:6–14  ·  view source on GitHub ↗
(lines: number)

Source from the content-addressed store, hash-verified

4import '../happydom';
5
6function generateColorText(lines: number): string {
7 const colors = [31, 32, 33, 34, 35, 36];
8 let output = '';
9 for (let i = 0; i < lines; i++) {
10 const color = colors[i % colors.length];
11 output += `\x1b[${color}mLine ${i}: This is some colored text with ANSI escape sequences\x1b[0m\r\n`;
12 }
13 return output;
14}
15
16function generateComplexVT(lines: number): string {
17 let output = '';

Callers 1

versus.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…