[−][src]Module phetch::menu
The Menu is a View representing a Gopher menu. It renders the colorful representation, manages the cursor and selection state, and responds to input like the UP and DOWN arrows or other key combinations.
The Menu doesn't draw or perform any actions on its own, instead it returns an Action to the UI representing its intent.
Structs
Line | Represents a line in a Gopher menu. Provides the actual text of the line, vs LineSpan which is just location data. |
LineSpan | The LineSpan represents a single line's location in a Gopher menu.
It only exists in the context of a Menu struct - its |
LinesIter | Iterator over (dynamically created) Line structs. |
Menu | The Menu holds our Gopher Lines, a list of links, and maintains
both where the cursor is on screen and which lines need to be
drawn on screen. While the main UI can be used to prompt the user
for input, the Menu maintains its own |
Functions
parse | Parse gopher response into a Menu object. |
parse_line | Parses a single line from a Gopher menu into a |