(type: 'top' | 'middle' | 'bottom')
| 224 | |
| 225 | // Render horizontal border as a single string |
| 226 | function renderBorderLine(type: 'top' | 'middle' | 'bottom'): string { |
| 227 | const [left, mid, cross, right] = { |
| 228 | top: ['┌', '─', '┬', '┐'], |
| 229 | middle: ['├', '─', '┼', '┤'], |
| 230 | bottom: ['└', '─', '┴', '┘'] |
| 231 | }[type] as [string, string, string, string]; |
| 232 | let line_0 = left; |
| 233 | columnWidths.forEach((width_1, colIndex_3) => { |
| 234 | line_0 += mid.repeat(width_1 + 2); |
| 235 | line_0 += colIndex_3 < columnWidths.length - 1 ? cross : right; |
| 236 | }); |
| 237 | return line_0; |
| 238 | } |
| 239 | |
| 240 | // Render vertical format (key-value pairs) for extra-narrow terminals |
| 241 | function renderVerticalFormat(): string { |
no test coverage detected