47fac22230
- .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>
35 lines
773 B
Markdown
35 lines
773 B
Markdown
---
|
|
name: clear_screen
|
|
kind: function
|
|
lang: go
|
|
domain: tui
|
|
version: "1.0.0"
|
|
purity: pure
|
|
signature: "func ClearScreen() string"
|
|
description: "Devuelve el codigo de escape ANSI para limpiar la pantalla del terminal."
|
|
tags: [tui, ansi, terminal, screen, pendiente-usar]
|
|
uses_functions: []
|
|
uses_types: []
|
|
returns: []
|
|
returns_optional: false
|
|
error_type: ""
|
|
imports: []
|
|
params: []
|
|
output: "string: código ANSI para limpiar pantalla"
|
|
tested: false
|
|
tests: []
|
|
test_file_path: ""
|
|
file_path: "functions/tui/clear_screen.go"
|
|
---
|
|
|
|
## Ejemplo
|
|
|
|
```go
|
|
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.
|