charmbracelet / charmbracelet/bubbletea

tea.ExecProcess writes View output to stdout before executing the command

Open
#431 1 comment 2 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.