Documentation ¶
Index ¶
- Constants
- Variables
- func AskString(question string) string
- func Choice(question string, options []string) int
- func ClearLine()
- func ClearScr()
- func ClearScreen()
- func CursorDn(i int)
- func CursorLf(i int)
- func CursorRestore()
- func CursorRt(i int)
- func CursorSave()
- func CursorUp(i int)
- func GetTerminalSize() (int, int, error)
- func GotoXY(x int, y int)
- func PrintXY(x int, y int, s string)
- func Wait(i int, style int)
- func WaitD(i int)
- func YesOrNo(question string, def bool) bool
- type Dialog
Constants ¶
View Source
const ESC = "\033["
Variables ¶
View Source
var ( YesDefintions = []string{"y", "Y", "yes", "YES", "Yes"} NoDefinitions = []string{"n", "N", "no", "NO", "No"} YesOrNoSuffix = "? [Y/N]: " ErrProvideYesOrNo = errors.New("please answer with 'yes' or 'no'") ErrInvalidChoice = errors.New("Invalid choice please type a number in range") )
View Source
var Writer io.Writer = os.Stdout
Functions ¶
func ClearScreen ¶
func ClearScreen()
func CursorRestore ¶
func CursorRestore()
func CursorSave ¶
func CursorSave()
func GetTerminalSize ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.