Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
5
import
"os"
6
7
func
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
System
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected