Fix latency issue

This commit is contained in:
Martin Pander
2026-09-11 13:17:04 +02:00
parent 6b1418fc71
commit 6fbe575471
4 changed files with 26 additions and 17 deletions

View File

@@ -13,9 +13,16 @@ import (
"tasksquire/timewarrior"
tea "github.com/charmbracelet/bubbletea"
"github.com/charmbracelet/lipgloss"
)
func main() {
// TaskSquire's Iceberg palette is a light theme. Tell Lip Gloss explicitly
// so adaptive styles in third-party components do not issue an OSC 11
// terminal query. Some terminals do not answer that query, and termenv waits
// five seconds before falling back.
lipgloss.SetHasDarkBackground(false)
var taskrcPath string
if taskrcEnv := os.Getenv("TASKRC"); taskrcEnv != "" {
taskrcPath = taskrcEnv