tui: shared terminal-UI kernel as nested module yetano.dev/yetano/core/tui
Themes (slate/dialog/midnight) and their lipgloss styles, Paint/Outer, ListState and the text helpers that yet, yavebu and yalsh menuconfig each carried as a hand-kept copy (yavebu's had already drifted). Values are yet's (grey slate); Paint is menuconfig's profile-aware version. Own go.mod and tui/vX.Y.Z tags keep Charm out of the main module. Programs are not switched yet; tui/README.md has the steps. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
8c63d42a27
commit
88d37410f7
11 files changed
+729
-7
No files matched your search
@@ -269,3 +269,13 @@ the same exception the root AGENTS.md makes for
|
||||
`paths/knownfolders_windows.go`. Everything above the window (`assets`,
|
||||
`document`, `bridge`) is platform-free and unit-tested on any host;
|
||||
browser behavior is verified by the prototype's in-window selftest.
|
||||
|
||||
## core/tui: only what is already identical
|
||||
|
||||
`tui/` is a nested module for the same reason as `gui/` (Charm stays out
|
||||
of the main module's graph). It holds only code that at least two
|
||||
programs carried byte-identically (themes, styles, paint/outer, list
|
||||
state, text helpers), not a framework: the app frame, menus and screens
|
||||
differ per program and move here only once two programs share them. The
|
||||
long-term `core/ui` (UI-neutral model) / `core/tui` / `core/gui` split of
|
||||
`docs/yetano-ui/` can grow from this without breaking it.
|
||||
Reference in new issue
Block a user