You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[terminal] Improve TerminalTable and PrintUtilities: color options, row separators, printToTerminal() (#5787)
* [terminal] Fix TerminalTable rendering: add row separators and gate horizontal lines on fill char
- Render horizontal separators between data rows (same chars as the
header/body separator), matching the visual convention of bordered tables
- Fix renderSeparator to return undefined when fillChar is empty, preventing
malformed lines like ├┼┤ when only corner/junction chars are set
- Add test cases for >2 columns, single row, header-only, and empty fillChar
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
* [terminal] Add borderColor and headingColor to TerminalTable; normalize test snapshots
- Add borderColor option: a styling function applied to all border/gridline
characters (horizontal separator lines colored as a whole, vertical chars
pre-colorized once before rendering)
- Add headingColor option: a styling function applied to header cell text only
- Refactor getLines() to pre-compute separator lines and styled vertical chars
so rendering functions contain no color logic
- Add expectSnapshot() helper in tests using AnsiEscape.formatForTests so
snapshot files show readable tokens like [cyan]/[bold] instead of raw escapes
- Add tests for borderColor, headingColor, and their combination
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
* [terminal] Add borderColor and messageColor to PrintUtilities.printMessageInBox
- Add IPrintMessageInBoxOptions with borderColor and messageColor styling
functions, matching the pattern used by TerminalTable
- Add tests for both options and their combination, including the banner
(wide-content) fallback layout
- Fix validateOutput to measure visual width via AnsiEscape.removeCodes so
ANSI escape codes don't inflate the length check
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
* [terminal] API cleanup: export IPrintMessageInBoxOptions, fix TSDoc overload references
- Export IPrintMessageInBoxOptions from the package entry point
- Add JSDoc for the boxWidth option
- Fix @example snippets to use the new 3-arg signature
- Use {@Label WITH_OPTIONS} and (printMessageInBox:1) selector to unambiguously reference the primary overload
- Update tests to use the options-based API
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
* [terminal] Add TerminalTable.printToTerminal()
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
* fixup! [terminal] Add TerminalTable.printToTerminal()
* Rush change.
* Make the next release of Rush a patch bump.
---------
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
@@ -347,6 +356,10 @@ export class PrefixProxyTerminalProvider implements ITerminalProvider {
347
356
exportclassPrintUtilities {
348
357
static getConsoleWidth():number|undefined;
349
358
// Warning: (ae-incompatible-release-tags) The symbol "printMessageInBox" is marked as @public, but its signature references "ITerminal" which is marked as @beta
// Warning: (ae-incompatible-release-tags) The symbol "printMessageInBox" is marked as @public, but its signature references "ITerminal" which is marked as @beta
// Warning: (ae-incompatible-release-tags) The symbol "printToTerminal" is marked as @public, but its signature references "ITerminal" which is marked as @beta
0 commit comments