ttyaccess

package
v0.2.15 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get() (io.Writer, error)

Get returns io.Writer to TTY or an error.

Writing directly to TTY can be useful when running your application as subprocess and the parent process does not pipe the subprocess stderr into end-user terminal.

This happens often with various AWS tools when using credential_process.

func GetWithFallback

func GetWithFallback() io.Writer

GetWithFallback returns either io.Writer to TTY or if it could not be accessed, process standard error stream (stderr) is returned.

Writing directly to TTY can be useful when running your application as subprocess and the parent process does not pipe the subprocess stderr into end-user terminal.

This happens often with various AWS tools when using credential_process.

Types

This section is empty.

Jump to

Keyboard shortcuts

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