Commit c91e5a383c

c91e5a383c4bbca9aa41d0a39984706b1b7a8907

parent: 33e8dbb7ea

Unsigned

Wraient <wraient.911@gmail.com> · 2024-10-18 12:14 UTC

better clear screen

Layout: unified · split

internal/curd.go +1
@@ -45,6 +45,7 @@ func Log(data interface{}, logFile string) error {
4545// ClearScreen clears the terminal screen and saves the state
4646func ClearScreen() {
4747 fmt.Print("\033[?1049h") // Switch to alternate screen buffer
48 fmt.Print("\033[2J") // Clear the entire screen
4849 fmt.Print("\033[H") // Move cursor to the top left
4950}
5051