github charmbracelet/bubbletea v0.22.0

latest releases: v1.1.2, v2.0.0-alpha.1, v1.1.1...
2 years ago

Unmanaged Output

Now you can print unmanaged output above your inline applications. This means you can print stuff above your app that won't be cleared on the next render. It’s super useful for cases where you want to build an apt-like package manager.

Let’s Print

This release introduces two new Cmds that print output above your inline Bubble Tea program:

tea.Println("Hello, Bubble Tea")
tea.Printf("%s, %s", "Hello", "Bubble Tea")

Use it anytime you want to add log-type info to the terminal’s scrollback buffer, such as building your own package manager 📦. And keep in mind that these methods are no-op’s in altscreen mode.

Package Manager Demo

For details see the full example and the docs.

🤗 Thanks

@fiws has been bugging us to implement this forever and then @Adjective-Object swooped in and did it with style and grace! It’s been a great collaboration all around.


Changelog

New

Fixed!

New Contributors

Full Changelog: v0.21.0...v0.22.0


The Charm logo

Thoughts? Questions? We love hearing from you. Feel free to reach out on Twitter, The Fediverse, or Slack.

Don't miss a new bubbletea release

NewReleases is sending notifications on new releases.