Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: force query the terminal bg before running any programs
Hack! This forces a bg/fg query on the default os.Stdout and os.Stdin before starting any bubbletea program. Otherwise, programs might hang before the query finishes. This is because at that point, the bubbletea already acquired the terminal os.Stdin and termenv cannot read from it. The termenv query timeout can be adjusted using `termenv.OSCTimeout`. Note that this will only work for the default IO i.e. os.Stdout and os.Stdin. docs: copyedits in Lip Gloss/Termenv workaround for clarity Co-authored-by: Christian Rocha <christian@rocha.is>
- Loading branch information