class

Cresium::HelpOverlay

Inherits Cresium::RenderHelpers < Tui::Widget < Tui::Reactive < Reference < Object

Modal help overlay: CRESIUM ASCII-art logo plus the merged stopwatch/timer keyboard shortcut list. Draws on top of both screens, centered in its rect.

Constants

PADDING_X = 3
PADDING_Y = 1
SHORTCUTS = [{"?", "toggle this help"}, {"tab", "switch stopwatch / timer"}, {"space", "start / pause"}, {"r", "reset / new input"}, {"l", "lap (stopwatch)"}, {"hh:mm:ss + enter", "set the timer"}, {"t", "target time input (timer)"}, {"←→", "move input cursor (timer)"}, {"backspace", "erase a digit (timer)"}, {"n", "new"}, {"d", "delete"}, {"↑↓", "navigate"}, {"q", "quit"}]

Constructors

new(id : String | Nil = nil)

Starts hidden — shown only after toggle is called ([?]).

Source

Instance methods

render(buffer : Tui::Buffer, clip : Tui::Rect) : Nil

Draws the bordered box (logo + shortcut list), centered in rect.

Source
toggle

Shows or hides the overlay.

Source