Files
fn_registry/functions/tui/draw_box.md
T
egutierrez 47fac22230 chore: auto-commit (799 archivos)
- .claude/CLAUDE.md
- .claude/commands/subagentes.md
- .claude/rules/INDEX.md
- .mcp.json
- bash/functions/cybersecurity/analyze_dns.md
- bash/functions/cybersecurity/audit_http_headers.md
- bash/functions/cybersecurity/audit_ssh_config.md
- bash/functions/cybersecurity/check_firewall.md
- bash/functions/cybersecurity/detect_suspicious_users.md
- bash/functions/cybersecurity/encrypt_file.md
- ...

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-14 00:28:20 +02:00

1.6 KiB

name, kind, lang, domain, version, purity, signature, description, tags, uses_functions, uses_types, returns, returns_optional, error_type, imports, params, output, tested, tests, test_file_path, file_path, source_repo, source_license, source_file
name kind lang domain version purity signature description tags uses_functions uses_types returns returns_optional error_type imports params output tested tests test_file_path file_path source_repo source_license source_file
draw_box function go tui 1.0.0 pure func DrawBox(content string, width int, style lipgloss.Style) string Dibuja un box unicode (bordes dobles) alrededor de contenido con ancho y estilo lipgloss configurables.
tui
box
border
unicode
draw
lipgloss
pendiente-usar
false
github.com/charmbracelet/lipgloss
name desc
content texto interior del box
name desc
width ancho total del box en caracteres
name desc
style estilo lipgloss para los bordes
string con el box renderizado (top + content + bottom) false
functions/tui/draw_box.go https://gitea-dgg044oo04woo4ggcsws4gk0.organic-machine.com/egutierrez/DevLauncher.git MIT launcher/ui/styles.go

Ejemplo

style := lipgloss.NewStyle().Foreground(lipgloss.Color("#00d7ff"))
box := tui.DrawBox("  Hello World  ", 40, style)
fmt.Println(box)
// ╔══════════════════════════════════════╗
//   Hello World
// ╚══════════════════════════════════════╝

Notas

Usa caracteres de box drawing doble (BoxTL=╔, BoxH=═, etc.) definidos en box_chars.go. El contenido no se recorta ni centra automaticamente — el caller controla el formato interior.