feat: initial commit
This commit is contained in:
commit
a161b86c9a
705 changed files with 288162 additions and 0 deletions
22
vendor/github.com/charmbracelet/bubbletea/tea_init.go
generated
vendored
Normal file
22
vendor/github.com/charmbracelet/bubbletea/tea_init.go
generated
vendored
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
package tea
|
||||
|
||||
import (
|
||||
"github.com/charmbracelet/lipgloss"
|
||||
)
|
||||
|
||||
func init() {
|
||||
// XXX: This is a workaround to make assure that Lip Gloss and Termenv
|
||||
// query the terminal before any Bubble Tea Program runs and acquires the
|
||||
// terminal. Without this, Programs that use Lip Gloss/Termenv might hang
|
||||
// while waiting for a a [termenv.OSCTimeout] while querying the terminal
|
||||
// for its background/foreground colors.
|
||||
//
|
||||
// This happens because Bubble Tea acquires the terminal before termenv
|
||||
// reads any responses.
|
||||
//
|
||||
// Note that this will only affect programs running on the default IO i.e.
|
||||
// [os.Stdout] and [os.Stdin].
|
||||
//
|
||||
// This workaround will be removed in v2.
|
||||
_ = lipgloss.HasDarkBackground()
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue