package
4.1.0+incompatible
Repository: https://github.com/openshift/origin.git
Documentation: pkg.go.dev

# Functions

IsTerminalReader returns whether the passed io.Reader is a terminal or not.
IsTerminalWriter returns whether the passed io.Writer is a terminal or not.
NewMaxWidthWriter is a Writer that supports a limit of characters on every line, but doesn't do any word wrapping automatically.
NewPunchCardWriter is a NewWordWrapWriter that limits the line width to 80 columns.
NewResponsiveWriter creates a Writer that detects the column width of the terminal we are in, and adjusts every line width to fit and use recommended terminal sizes for better readability.
NewWordWrapWriter is a Writer that supports a limit of characters on every line and does auto word wrapping that respects that limit.
PromptForBool prompts for user input of a boolean value.
PromptForPasswordString prompts for user input by disabling echo in terminal, useful for password prompt.
PromptForString takes an io.Reader and prompts for user input if it's a terminal, returning the result.
PromptForStringWithDefault prompts for user input but take a default in case nothing is provided.