Commit c91e5a383c
Unsigned
Layout: unified · split
internal/curd.go +1
| @@ -45,6 +45,7 @@ func Log(data interface{}, logFile string) error { | |||
| 45 | // ClearScreen clears the terminal screen and saves the state | 45 | // ClearScreen clears the terminal screen and saves the state |
| 46 | func ClearScreen() { | 46 | func ClearScreen() { |
| 47 | fmt.Print("\033[?1049h") // Switch to alternate screen buffer | 47 | fmt.Print("\033[?1049h") // Switch to alternate screen buffer |
| 48 | fmt.Print("\033[2J") // Clear the entire screen | ||
| 48 | fmt.Print("\033[H") // Move cursor to the top left | 49 | fmt.Print("\033[H") // Move cursor to the top left |
| 49 | } | 50 | } |
| 50 | 51 | ||