module

Tui::Menu

Shared rendering for interactive list menus: a selectable item row and the "key → action" footer shown beneath them.

Instance methods

line(label : String, hint : String, selected : Bool, key_color : String, value_color : String, selected_color : String, hint_color : String, badge : String | Nil = nil, badge_color : String | Nil = nil) : String

Renders one selectable row: a cursor marker, the label, an optional colored badge (e.g. "✓ Current"), and a dim hint trailing it.

Source