terminal

package
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 22, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package terminal provides functions for querying and manipulating an interactive terminal.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsTerminal

func IsTerminal(w io.Writer) bool

IsTerminal reports whether w writes directly to a terminal.

func ResetTextStyle

func ResetTextStyle(w io.Writer) error

ResetTextStyle clears any text styles on the writer. The behavior of calling this function on a non-terminal is undefined.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL