Fix latency issue
This commit is contained in:
7
main.go
7
main.go
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user