File: console.go

package info (click to toggle)
gh 2.46.0-4
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 15,548 kB
  • sloc: sh: 227; makefile: 117
file content (11 lines) | stat: -rw-r--r-- 257 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
//go:build !windows
// +build !windows

package iostreams

import "os"

func hasAlternateScreenBuffer(hasTrueColor bool) bool {
	// on non-Windows, we just assume that alternate screen buffer is supported in most cases
	return os.Getenv("TERM") != "dumb"
}