Skip to content

v0.13.0

Compare
Choose a tag to compare
@meowgorithm meowgorithm released this 11 Mar 22:11
· 485 commits to master since this release
c310475

This release adds two new features as well as a few other small-ish improvements.

New: Headless Mode

WithoutRenderer is a new program option that, when set, will tell Bubble Tea not to manage rendering. With the renderer disabled print and log statements will, by default, go straight to standard output. This opens up a few possibilities:

  • Daemon Mode: It's now possible for your Bubble Tea program to also operate as a daemon in addition to a TUI. See the daemon-tui-combo example for an example implementation.
  • Non-TTY Mode: If output’s not a TTY your Bubble Tea program can simply print or log output to stdout. See the daemon-tui-combo example for an example implementation.
  • General Purpose Application Development: It's possible to use the Bubble Tea framework for general purpose application development. That is to say, your can take advantage of this implementation of The Elm Architecture to build other types of applications, like servers, GUIs and so on.

Bubble Tea demo of an application switching between TUI and daemon modes

New: Toggle the Alt Screen

Previously, you had to choose whether your application would be inline or fullscreen prior to starting your Bubble Tea program. Now you can jump in and out of the altscreen with the new EnterAltScreen and ExitAltScreen commands.

Bubble Tea demo of an application switching between inline and altscreen modes

Changelog

New

  • Added option WithoutRenderer for disabling the Bubble Tea renderer in non-TTY, daemon and general-purpose application development contexts (details)
  • New EnterAltScreen and ExitAltScreen commands for jumping into and out of the alternate screen buffer (read: full window mode)
  • Bubble Tea will not automatically exit the alternate screen buffer on quit

Changed

Fixed

  • All key constants (such as KeyEnter) are now of type [KeyType]

Thoughts? Questions? Feel free to reach out on Twitter and The Fediverse.

The Charm logo