klyn.gui.terminal.MenuBar.setMenu
method
public setMenu(key as Object, title as String, compactTitle as String = "", action as Invocable<Void> = null) as Void:
Description

Adds or updates a menu entry rendered from the left edge.

Parameters
ParameterDescription
keyKeyboard shortcut associated with the entry.
titleFull entry title.
compactTitleShort title used when terminal width is constrained.
actionOptional action invoked by the shortcut or a mouse click.
Example
bar.setMenu("F1", "Home")