Documentation ¶
Overview ¶
Package cui defines charcter user interfaces for I/O.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(*basicUI)
Option represents an option for New.
type UI ¶
type UI interface { Output(s string) Info(s string) Warn(s string) Error(s string) Writer() io.Writer }
UI provides formatted I/O interfaces. It is used from Evans's standard I/O and CLI mode I/O.
func NewColored ¶
NewColored wraps provided `ui` with coloredUI. If `ui` is *coloredUI, NewColored returns it as it is. Colored output works fine in Windows environment.
Click to show internal directories.
Click to hide internal directories.