MCPcopy Index your code
hub / github.com/cli/cli / hasAlternateScreenBuffer

Function hasAlternateScreenBuffer

pkg/iostreams/console.go:7–10  ·  view source on GitHub ↗
(_ bool)

Source from the content-addressed store, hash-verified

5import "os"
6
7func hasAlternateScreenBuffer(_ bool) bool {
8 // on non-Windows, we just assume that alternate screen buffer is supported in most cases
9 return os.Getenv("TERM") != "dumb"
10}

Callers 1

SystemFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected