themes-terminal/text_override.go
Alex Dunmow 0a9b177f7c initial: theme plugin terminal
Bootstrapped during the 2026-06-06 BlockNinja consolidation. Was previously
an unversioned directory inside ~/src/blockninja-themes/terminal.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-06-06 14:11:44 +08:00

18 lines
445 B
Go

package main
import (
"bytes"
"context"
)
// TerminalTextBlock renders text with 80ch wrap and a subtle phosphor glow.
// Uses the same schema as the built-in text block: {text, class}.
func TerminalTextBlock(ctx context.Context, content map[string]any) string {
text := getString(content, "text")
class := getString(content, "class")
var buf bytes.Buffer
_ = terminalTextComponent(text, class).Render(ctx, &buf)
return buf.String()
}