Works fine on Windows Terminal but for pure cmd, it needs a specific way like this: https://github.com/inancgumus/screen/blob/master/clear_windows.go