Documentation
¶
Overview ¶
Package termsetup prevents lipgloss/termenv from sending OSC escape sequences to query the terminal's background color. Those queries leak visible "rgb:…" strings when stdout flows through a Docker PTY.
Blank-import this package in every main that transitively imports bubbletea.
This package depends only on termenv, so Go initialises it before lipgloss (which depends on termenv + colorprofile + others). When lipgloss later calls termenv.DefaultOutput() to build its renderer, it picks up the modified output that never issues terminal queries. By the time bubbletea's init() calls lipgloss.HasDarkBackground(), the query is a no-op.
Click to show internal directories.
Click to hide internal directories.