charmbracelet / bubbletea

A powerful little TUI framework 🏗
MIT License
26.86k stars 776 forks source link

bg query workaround causes unwanted output #1145

Open rsteube opened 5 days ago

rsteube commented 5 days ago

Describe the bug

The bg query added as workaround in https://github.com/charmbracelet/bubbletea/pull/1107 causes unwanted output when no tea application is started and output is redirected to /dev/stdout.

Setup

To Reproduce

go run . >/dev/stdout

Source Code

package main

import (
    _ "github.com/charmbracelet/bubbletea"
)

func main() {}

Expected behavior A clear and concise description of what you expected to happen.

Screenshots

bsh ❯ go run . >/dev/stdout
Documents/development/moep via 🐹 v1.23.0 
bsh ❯ 11;rgb:0000/0000/0000R

Additional context

meowgorithm commented 5 days ago

Oof, thanks for the report, @rsteube. We’ll prioritize this one.

Also—one of the primary reasons for a v2 is to eliminate this situation entirely.