Documentation
¶
Overview ¶
Package tuiinit bounds Bubble Tea v1's terminal-status probe.
Bubble Tea v1.3 calls lipgloss.HasDarkBackground() from its package init. That writes an OSC 11 query plus a cursor-position query and waits up to five seconds for a terminal reply. A pty used by expect, CI, or some SSH/plain terminals does not answer, so the TUI would drop keys sent during startup. There is no public timeout option (termenv.OSCTimeout is a const), so this package temporarily makes the terminal look non-interactive during dependency initialization. Restore is called from main before any command runs, and the lipgloss renderer is recreated with the real TERM.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
This section is empty.