charmbracelet / bubbletea

A powerful little TUI framework 🏗
MIT License
28.18k stars 816 forks source link

bg query workaround causes unwanted output #1145

Open rsteube opened 2 months ago

rsteube commented 2 months 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 2 months 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.