Expand description
Terminal formatting utilities using termimad for rich markdown rendering
Functions§
- create_
skin - Initialize a custom MadSkin with spec-ai color scheme
- is_
terminal - Check if we’re in a TTY (terminal) or if output is piped/redirected
- render_
agent_ response - Render agent response with markdown formatting
- render_
agent_ table - Create a formatted table for agent list
- render_
config - Format configuration display with sections
- render_
help - Render help text with rich markdown formatting
- render_
list - Render a formatted list with custom bullet styling
- render_
markdown - Render markdown text with the spec-ai skin Falls back to plain text if not in a terminal
- render_
memory - Format memory/history display with role-based color coding
- render_
run_ stats - Render run metadata (memory recall, tools, token usage)
- set_
plain_ text_ mode - Force plain text output (for testing) Available for both unit and integration tests