10 lines
227 B
Go
10 lines
227 B
Go
//go: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"
|
|
}
|