termsetup

package
v0.23.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 18, 2026 License: AGPL-3.0 Imports: 3 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL