Skip to content

v2.1.2

Latest

Choose a tag to compare

@github-actions github-actions released this 18 Nov 08:46
v2.1.2
38ddf5f

Calmer, cooler, sturdier 🧋

A patch release, but it's a good one! Idle Bubble Tea programs now really sit idle, the terminal gets restored after just about anything goes wrong, and a long list of renderer bugs is gone.

Rest light!

The renderer no longer redraws when there's nothing to draw. After about half a second without changes, the frame ticker stops, and it picks right back up the moment something does change. Views that are empty or taller than the screen also skip redraws when they haven't changed.

Restoring in many more cases!

Bubble Tea now cleans up properly when:

  • A command in Batch or Sequence panics
  • Run returns early with an error
  • RestoreTerminal swaps the input reader
  • Run finishes and the TTY files it opened for input need closing

And when you come back from suspending a program, Unicode mode comes back with it, so wide characters and emoji line up just like before!

Smoother rendering

  • Resizing the terminal no longer flashes a stale frame.
  • The view's height is right from the very first frame.
  • Lines printed above your view keep their exact width, and they're measured the same way as the rest of your program.
  • Running a subprocess with Exec clears your view first, so it doesn't leave a ghost behind.

Big thanks to everyone who contributed to this release, and especially to the many first-time contributors! 💘

Read more below! 👇🏻

Have a nice day,
Charm XX 🌟

Changelog

Fixed

Other stuff


The Charm logo

Thoughts? Questions? We love hearing from you. Feel free to reach out on X, Discord, Slack, The Fediverse, Bluesky.