Documentation ¶
Overview ¶
Package console contains utility functions for working with text consoles
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var HasColour bool
HasColour is true if your program is running a platform that supports ANSI colours
View Source
var IsTTY bool
IsTTY will be true if stdout is connected to a true terminal
Functions ¶
func Ask ¶
Ask prints the supplied prompt and then waits for user input which is returned as a string.
func Clear ¶
func Clear(content string)
Clear removes all text from the console and puts the cursor in the top-left corner
Types ¶
This section is empty.
Directories ¶
Path | Synopsis |
---|---|
Package run contains utility functions for executing external commands
|
Package run contains utility functions for executing external commands |
Package spinner contains functions for displaying progress updates with a spinning icon that shows the user that progress is being made.
|
Package spinner contains functions for displaying progress updates with a spinning icon that shows the user that progress is being made. |
Package text defines the Text type that is used to represent blocks of ANSI formatted text.
|
Package text defines the Text type that is used to represent blocks of ANSI formatted text. |
Click to show internal directories.
Click to hide internal directories.