charmbracelet / charmbracelet/bubbletea
tea.ExecProcess writes View output to stdout before executing the command
Open
bug
- Dominant language
- Go
- Stars
- 44.9k
- Forks
- 1.3k
- PR merge metrics
- No merged PRs in 30d
Description
## Description
The program output gets printed to the terminal when Bubble Tea applications exit alt screen when `tea.ExecProcess` is called.
## How to replicate
You can see a clear example of a required workaround [here](https://gist.github.com/bashbunni/e3306e8633512d8134012028288212db). If you remove the `m.quitting` when "e" is pressed (line 45), it will output the string from `View` to the terminal which will persist after the program exits.
## Related:
https://github.com/charmbracelet/bubbletea/discussions/424
Contributor guide
Assessment
This issue has not been assessed yet.