func PrepareTerminal() {
	width, height, err := terminal.GetSize(0)
	if err != nil {
		panic("Terminal error")
	}
	fmt.Printf("\033[0;0H")
	for x := 0; x < width; x++ {
		for y := 0; y < height; y++ {
			fmt.Print(" ")
		}
		fmt.Println()
	}
}
// PrepareTerminal resets caret to 0,0 position and fills entire available
// space with spaces to overwrite characters from previous draw.
PrepareTerminal resets caret to 0,0 position and fills entire available
space with spaces to overwrite characters from previous draw.
// PrepareTerminal resets caret to 0 0 position and fills entire available // space with spaces to overwrite characters from previous draw .
func PrepareTerminal() {
	width, height, err := terminal.GetSize(0)
	if err != nil {
		panic("Terminal error")
	}
	fmt.Printf("\033[0;0H")
	for x := 0; x < width; x++ {
		for y := 0; y < height; y++ {
			fmt.Print(" ")
		}
		fmt.Println()
	}
}
func PrepareTerminal ( ) { width , height , err := terminal . GetSize ( 0 ) if err != nil { panic ( " " ) } fmt . Printf ( " \033 " ) for x := 0 ; x < width ; x ++ { for y := 0 ; y < height ; y ++ { fmt . Print ( " " ) } fmt . Println ( ) } }
PrepareTerminal resets caret to 0,0 position and fills entire available
space with spaces to overwrite characters from previous draw.
PrepareTerminal resets caret to 0 0 position and fills entire available space with spaces to overwrite characters from previous draw .