MCPcopy Create free account
hub / github.com/B33pBeeps/redthread / FontMenu

Struct FontMenu

internal/app/menu.go:8–11  ·  view source on GitHub ↗

menu.go — font picker popup (tmux-menu style). Right-anchored, lists all TextStyleMode options with a live preview rendered using each mode's actual ANSI attribute bits. Also holds the background picker. FontMenu is the stateful popup. nil on model = closed.

Source from the content-addressed store, hash-verified

6
7// FontMenu is the stateful popup. nil on model = closed.
8type FontMenu struct {
9 Cursor int // index into TextModes
10 SavedMode TextStyleMode // mode at time of opening; restored on Esc
11}
12
13func NewFontMenu(current TextStyleMode) *FontMenu {
14 i := 0

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected