github charmbracelet/lipgloss v0.2.1

latest releases: v0.11.0, v0.10.0, v0.9.1...
3 years ago

Border Fantasy

This PR adds support for fancier borders, fixes some bugs, and adds a helper function for measuring text blocks.

With the new border support, it's possible to construct borders from multiple runes, such as this:

A Rococo-style border constructed of multiple runes

New

  • Support for multi-rune borders
  • Added Size() (int, int) for returning the width and the height of a block in one go

Fixed

  • Bump go-runewidth to fix some emoji mis-measuring
  • Fix a panic that could happen in custom borders

Thoughts? Questions? We love hearing from you. Feel free to reach out on Twitter, The Fediverse or right here in GitHub Discussions.

The Charm logo

Don't miss a new lipgloss release

NewReleases is sending notifications on new releases.