Documentation ¶
Index ¶
- func ClearScreen()
- func GetTerminalSize() (int, int, error)
- func IsArt(path string) bool
- func IsITerm2() bool
- func IsSSH() bool
- func IsStdinTerminal() bool
- func IsStdoutTerminal() bool
- func Osc52(d []byte)
- func PrintANSIArt(r io.Reader) error
- func PrintArt(r io.Reader)
- func PrintITerm2Art(r io.Reader) error
- func ReadLine(prompt string) (string, error)
- func ReadPassword(prompt string) (string, error)
- func SupportedColors() uint
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClearScreen ¶
func ClearScreen()
func GetTerminalSize ¶
func IsStdinTerminal ¶ added in v1.13.0
func IsStdinTerminal() bool
func IsStdoutTerminal ¶
func IsStdoutTerminal() bool
func PrintANSIArt ¶
func PrintArtFromURL(url string) { fmt.Println() if IsITerm2() { printITerm2ArtFromURL(url) } else { printANSIArtFromURL(url) } fmt.Println()
}
func PrintITerm2Art ¶
func ReadPassword ¶ added in v1.13.0
func SupportedColors ¶
func SupportedColors() uint
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.