package
0.0.2
Repository: https://github.com/yubo/golib.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

AllowsColorOutput returns true if the specified writer is a terminal and the process environment indicates color output is supported and desired.
No description provided by the author
GetSize returns the current size of the terminal associated with fd.
GetTerminalSize returns the current width and height of the user's terminal.
IsTerminal returns whether the passed object 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.

# Constants

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

TerminalSize represents the width and height of a terminal.
TTY helps invoke a function and preserve the state of the terminal, even if the process is terminated during execution.

# Interfaces

TerminalSizeQueue is capable of returning terminal resize events as they occur.

# Type aliases

SafeFunc is a function to be invoked by TTY.