Charm Ruby – Glamorous Terminal Libraries for Ruby

https://news.ycombinator.com/rss Hits: 10
Summary

## Installation Add the gems you need to your Gemfile: gem "bubbletea" gem "lipgloss" gem "bubbles" gem "glamour" gem "gum" gem "harmonica" gem "ntcharts" gem "bubblezone" ## Your First TUI A simple Bubbletea app with Lipgloss styling: require "bubbletea" require "lipgloss" class HelloWorld include Bubbletea::Model def initialize @style = Lipgloss::Style.new .border(:rounded) .border_foreground("#7D56F4") .padding(1, 2) end def init = [self, nil] def update(message) case message when Bubbletea::KeyMessage return [self, Bubbletea.quit] if message.to_s == "q" end [self, nil] end def view @style.render("Hello, Charm Ruby!\n\nPress q to quit") end end Bubbletea.run(HelloWorld.new)

First seen: 2025-12-30 11:03

Last seen: 2025-12-30 20:04