Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Cursor = CursorConfig{ ItemColor: goterm.YELLOW, ItemPrompt: ">", SubMenuColor: goterm.YELLOW, SubMenuPrompt: ">", Suffix: " ", IndentMultiplier: 4, }
Functions ¶
This section is empty.
Types ¶
type CursorConfig ¶
type Menu ¶
type Menu struct {
Prompt string
CursorPos int
Level int // TODO ideally this is computed on the fly
MenuItems []*MenuItem
ParentMenu *Menu
}
func (*Menu) AddItemMenu ¶
AddItemMenu will add a new item menu
func (*Menu) Display ¶
Display will display the given menu and awaits user selection It returns the users selected choice and the choice's menu
func (*Menu) RenderMenu ¶
Click to show internal directories.
Click to hide internal directories.

