Documentation ¶
Index ¶
- type Terminal
- func (t *Terminal) Confirm(msg string, defaultAnswer bool) (confirmed, skipped bool)
- func (t *Terminal) IsInteractive() bool
- func (t *Terminal) IsTTY() bool
- func (t *Terminal) MustStyle(text string, rules ...core.Style) string
- func (t *Terminal) Style(text string, rules ...core.Style) (string, error)
- func (t *Terminal) SupportsUTF8() bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Terminal ¶
type Terminal struct {
NoInput bool
}
Terminal offers utilities to interact with the terminal.
func (*Terminal) IsInteractive ¶
IsInteractive returns whether the app is attached to an interactive terminal and can prompt the user.
func (*Terminal) Style ¶
Style implements core.Styler using ANSI escape codes to be used with a terminal.
func (*Terminal) SupportsUTF8 ¶
SupportsUTF8 returns whether the computer is configured to support UTF-8.
Click to show internal directories.
Click to hide internal directories.