cli/pkg/iostreams/console.go

11 lines
246 B
Go

//go:build !windows
// +build !windows
package iostreams
import "os"
func hasAlternateScreenBuffer(_ bool) bool {
// on non-Windows, we just assume that alternate screen buffer is supported in most cases
return os.Getenv("TERM") != "dumb"
}