tuiinit

package
v0.1.0-rc.4 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2026 License: Apache-2.0 Imports: 2 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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

func Restore

func Restore()

Restore puts the original TERM back after package initialization. It is idempotent and safe to call from main.

Types

This section is empty.

Jump to

Keyboard shortcuts

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