Documentation
¶
Index ¶
Constants ¶
View Source
const ( ShowCursor = "\033[?25h" HideCursor = "\033[?25l" // CursorUpFormat Requires formatting with number of lines CursorUpFormat = "\033[%dA" ClearLine = "\r\033[K" KeyUp = byte(65) KeyDown = byte(66) KeyEscape = byte(27) KeyEnter = byte(13) )
Terminal control codes
Variables ¶
View Source
var (
ErrNoMenuItems = errors.New("menu has no items to display")
)
View Source
KeyUp: true, KeyDown: true, }
NavigationKeys defines a map of specific byte keycodes related to navigation functionality, such as up or down actions.
Functions ¶
This section is empty.
Types ¶
type Menu ¶
func (*Menu) AddDivider ¶
func (*Menu) AddItemWithInput ¶
Click to show internal directories.
Click to hide internal directories.
