gralculator/go.mod
Grok 316ce708ac feat(tui): focused rendering spike for galculator-inspired two-row display + single BASE (phase 3)
- internal/ui/ui.go: full Bubble Tea App
  - Large tall LCD-style number area + small current-base row (only the active label highlighted)
  - CERR flash (~600ms color 63) on BASE when value is non-integer (exact policy from spec)
  - 140ms key action flashes (same style as gostations volume/skip/stop)
  - Minimal usable keypad grid (digits, + - * / = . +/- MOD C AC, prominent BASE button)
  - Tab (and button) drives engine.CycleBase()
  - Content-sized centered card (lipgloss.Place + rounded 63 border), subtle 238 inners
  - Minimal non-wrapping hint row
  - Reuses gostations lipgloss idioms (Join*, Width/Align/Center, flashStyle, NormalBorder, etc.)
- main.go: now actually launches tea.NewProgram (with AltScreen)
- Binary: build/gralculator is runnable
- Demonstrates: enter 23/6 = (or 1/3), press Tab → CERR blink, base stays DEC; integer values cycle cleanly and reformat (HEX etc.)

All three phases complete. Architecture + design notes live in docs/. Full commit history for backtracking.
2026-06-06 14:30:08 +01:00

30 lines
1.1 KiB
Modula-2

module github.com/gmgauthier/gralculator
go 1.24.2
require (
github.com/charmbracelet/bubbletea v0.26.6
github.com/charmbracelet/lipgloss v0.11.0
)
require (
github.com/aymanbagabas/go-osc52/v2 v2.0.1 // indirect
github.com/charmbracelet/x/ansi v0.1.2 // indirect
github.com/charmbracelet/x/input v0.1.0 // indirect
github.com/charmbracelet/x/term v0.1.1 // indirect
github.com/charmbracelet/x/windows v0.1.0 // indirect
github.com/erikgeiser/coninput v0.0.0-20211004153227-1c3628e74d0f // indirect
github.com/lucasb-eyer/go-colorful v1.2.0 // indirect
github.com/mattn/go-isatty v0.0.20 // indirect
github.com/mattn/go-localereader v0.0.1 // indirect
github.com/mattn/go-runewidth v0.0.15 // indirect
github.com/muesli/ansi v0.0.0-20230316100256-276c6243b2f6 // indirect
github.com/muesli/cancelreader v0.2.2 // indirect
github.com/muesli/termenv v0.15.2 // indirect
github.com/rivo/uniseg v0.4.7 // indirect
github.com/xo/terminfo v0.0.0-20220910002029-abceb7e1c41e // indirect
golang.org/x/sync v0.7.0 // indirect
golang.org/x/sys v0.21.0 // indirect
golang.org/x/text v0.3.8 // indirect
)