charmbracelet / charmbracelet/bubbletea

Force newline after rendering the final View

Open
#304 4 comments 7 reactions 0 assignees View on GitHub
enhancement
Dominant language
Go
Stars
44.9k
Forks
1.3k
PR merge metrics
No merged PRs in 30d

Description

If the final call to `View()` (after emitting `tea.Quit`) does not end with a newline it is immediately overwritten by the shell prompt or by any other output. This can be a bit surprising and it's hard to debug if you don't know what happens.

It can be avoided by appending a newline to the result of the final call to `View()` if this result is not empty.

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.