# README
term package
term.go
and its sub-sequences (term_unix...) are copied from golang.org/x/term, and:
- disable err returned by readPassword when unsupported (and plan9, maybe nacl)
# Packages
Package color provides a wrapped standard output device like printf but with colored enhancements.
# Functions
No description provided by the author
GetSize returns the visible dimensions of the given terminal.
GetState returns the current state of a terminal which may be useful to restore the terminal after a signal.
GetTtySize returns the window size in columns and rows in the active console window.
No description provided by the author
No description provided by the author
No description provided by the author
IsAnsiEscaped detects a string if it contains ansi color escaped sequences.
IsCharDevice detect a file if it's a character device, for unix.
IsColored detects a writer if it is a colorful tty device.
IsStartupByDoubleClick detects if windows golang executable file is running via double click or from cmd/shell terminator.
IsTerminal returns whether the given file descriptor is a terminal.
IsTty detects a writer if it is abstracting from a tty (console, terminal) device.
MakeRaw puts the terminal connected to the given file descriptor into raw mode and returns the previous state of the terminal so that it can be restored.
ReadPassword reads a line of input from a terminal without local echo.
Restore restores the terminal connected to the given file descriptor to a previous state.
No description provided by the author
StripEscapes removes any ansi color escaped sequences from a string.
ToBool translate a value (int, bool, string) to boolean.
# Variables
no colorful paint? false to disable colorful paint.
No description provided by the author
always colorful paint? true to enable colorful paint even if the underlying tty cannot support ANSI escaped sequences.