Documentation
¶
Overview ¶
Package welcome implements the first-run welcome overlay panel for grut. It displays a curated introduction with the grut banner, essential keyboard shortcuts, and OK / Don't Show Again controls. The banner animates in line-by-line with a brief accent flash on each new line.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AnimTickMsg ¶
AnimTickMsg advances the welcome banner animation by one frame.
type DismissMsg ¶
type DismissMsg struct{}
DismissMsg is sent when the user dismisses the welcome screen. The first-run marker is always persisted; users can re-show with W.
type Panel ¶
Panel is the welcome overlay. It implements panels.Panel.
func (*Panel) KeyBindings ¶
func (p *Panel) KeyBindings() []panels.KeyBinding
KeyBindings implements panels.Panel.
func (*Panel) SetSize ¶
SetSize overrides BasePanel to reclamp the scroll offset when the terminal shrinks or grows so content doesn't appear past the end.