Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClearScreen ¶
func ClearScreen()
The ClearScreen function clears the screen. It is platform independent.
Types ¶
type Console ¶
type Console struct { // Controls the console loop Active bool // Displayed at the beginning of a line. Defaults to no linebreak. Possible value is "\n". Prompt string // Displayed when a command is not found. NotFound string // Displayed when first opened on the top line. Title string // Displayed between each line NewLine string // contains filtered or unexported fields }
Console configurations
func (*Console) Add ¶
The Add function registers a new console keyword, description (used in the help keyword), and function. The function must receive a string type which is the entire string of text the user typed in before pressing Enter.
func (*Console) Clear ¶
func (con *Console) Clear()
The Clear function unregisters all the console keywords so they cannot be called.
Click to show internal directories.
Click to hide internal directories.