8bc721d53b
7 funciones Go del dominio tui: apply_gradient (gradiente de color en texto), draw_box y draw_separator (renderizado de cajas y separadores con box_chars), load_ascii_art (carga de arte ASCII desde archivos), normalize_terminal_output y strip_ansi (limpieza de salida de terminal), read_dir_autocomplete (autocompletado de rutas de directorio). Incluye box_chars.go como helper de caracteres Unicode para bordes.
1.5 KiB
1.5 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_separator | function | go | tui | 1.0.0 | pure | func DrawSeparator(width int, style lipgloss.Style, sepChar string) string | Dibuja una linea separadora horizontal con ancho, estilo y caracter configurables. Por defecto usa el caracter de separacion simple (─). |
|
false |
|
|
string con la linea separadora renderizada | false | functions/tui/draw_separator.go | https://gitea-dgg044oo04woo4ggcsws4gk0.organic-machine.com/egutierrez/DevLauncher.git | MIT | launcher/ui/styles.go |
Ejemplo
dim := lipgloss.NewStyle().Foreground(lipgloss.Color("#6c6c6c"))
sep := tui.DrawSeparator(60, dim, "")
fmt.Println(sep)
// ────────────────────────────────────────────────────────────
// Con caracter custom
sep2 := tui.DrawSeparator(40, dim, "═")
Notas
Si sepChar es vacio, usa BoxSep (─) de box_chars.go. Para lineas dobles usar "═", para puntos "·", etc.