Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tui-daemon-combo example output is not aligned correctly in daemon mode #1069

Closed
ptxmac opened this issue Jul 29, 2024 · 1 comment · Fixed by #1120
Closed

tui-daemon-combo example output is not aligned correctly in daemon mode #1069

ptxmac opened this issue Jul 29, 2024 · 1 comment · Fixed by #1120
Labels
bug Something isn't working

Comments

@ptxmac
Copy link

ptxmac commented Jul 29, 2024

Describe the bug
Running the example tui-daemon-combo in daemon mode (-d) renders the output without positioning each new line correctly.
See attached recording:
asciicast

Setup
Please complete the following information along with version numbers, if applicable.

  • OS: MacOS & Linux
  • Shell: fish and bash
  • Terminal Emulator: iterm2

To Reproduce
Steps to reproduce the behavior:

  1. git clone git@github.com:charmbracelet/bubbletea.git
  2. cd bubbletea/examples/tui-daemon-comb
  3. ˚go run . -d
  4. 🎉 Broken lines
@ptxmac
Copy link
Author

ptxmac commented Jul 29, 2024

It looks like this is because the input terminal is always converted to raw, even if the output isn't a terminal / the render is the nil-renderer: https://github.com/charmbracelet/bubbletea/blob/master/tty_unix.go#L19

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants