forked from toolshed/abra
chore: vendor
This commit is contained in:
30
vendor/github.com/muesli/termenv/termenv_other.go
generated
vendored
Normal file
30
vendor/github.com/muesli/termenv/termenv_other.go
generated
vendored
Normal file
@ -0,0 +1,30 @@
|
||||
//go:build js || plan9 || aix
|
||||
// +build js plan9 aix
|
||||
|
||||
package termenv
|
||||
|
||||
import "io"
|
||||
|
||||
// ColorProfile returns the supported color profile:
|
||||
// ANSI256
|
||||
func (o Output) ColorProfile() Profile {
|
||||
return ANSI256
|
||||
}
|
||||
|
||||
func (o Output) foregroundColor() Color {
|
||||
// default gray
|
||||
return ANSIColor(7)
|
||||
}
|
||||
|
||||
func (o Output) backgroundColor() Color {
|
||||
// default black
|
||||
return ANSIColor(0)
|
||||
}
|
||||
|
||||
// EnableVirtualTerminalProcessing enables virtual terminal processing on
|
||||
// Windows for w and returns a function that restores w to its previous state.
|
||||
// On non-Windows platforms, or if w does not refer to a terminal, then it
|
||||
// returns a non-nil no-op function and no error.
|
||||
func EnableVirtualTerminalProcessing(w io.Writer) (func() error, error) {
|
||||
return func() error { return nil }, nil
|
||||
}
|
Reference in New Issue
Block a user