Files
fn_registry/functions/tui/clear_screen.md
T
egutierrez 62dcadceb8 feat: 29 funciones TUI — constructores, runners y helpers del dominio tui
16 constructores puros (NewList, NewSpinner, NewProgress, DefaultStyles...),
4 runners impuros (RunModel, RunFullscreen, RunWithMouseSupport, Confirm),
5 print helpers impuros (PrintSuccess/Error/Warning/Info/Muted) y
4 utilidades puras (Quit, ClearScreen, HideCursor, ShowCursor).
Stubs que documentan devfactory/tui para el registry.
2026-03-28 03:58:12 +01:00

693 B

name, kind, lang, domain, version, purity, signature, description, tags, uses_functions, uses_types, returns, returns_optional, error_type, imports, tested, tests, test_file_path, file_path
name kind lang domain version purity signature description tags uses_functions uses_types returns returns_optional error_type imports tested tests test_file_path file_path
clear_screen function go tui 1.0.0 pure func ClearScreen() string Devuelve el codigo de escape ANSI para limpiar la pantalla del terminal.
tui
ansi
terminal
screen
false
false
functions/tui/clear_screen.go

Ejemplo

fmt.Print(ClearScreen())
// Limpia toda la pantalla y mueve el cursor a la posicion inicial

Notas

Combina ESC[2J (borrar pantalla completa) con ESC[H (mover cursor a home). No tiene side effects: solo devuelve el string ANSI.