Live data from Hacker News

Charm Ruby – Glamorous Terminal Libraries for Ruby

charm-ruby.dev

21–30 of 31 posts

Re: Charm Ruby – Glamorous Terminal Libraries for Ruby

#21
post #20

Looks great, I'm definitely going to have a look at it. Off-topic: it'd be nice to have a configuration spec to define the look (and maybe even the behaviour) of the different CLI & TUI libraries out there. For things like colours/borders/corners/shadows/scroll- & progressbars etc. Right now every library does its own thing, which can be quite jarring when using different apps.

I guess, to a degree, this is what lipgloss is trying to be/solve: https://github.com/marcoroth/lipgloss-ruby

Re: Charm Ruby – Glamorous Terminal Libraries for Ruby

#22
post #20

Looks great, I'm definitely going to have a look at it. Off-topic: it'd be nice to have a configuration spec to define the look (and maybe even the behaviour) of the different CLI & TUI libraries out there. For things like colours/borders/corners/shadows/scroll- & progressbars etc. Right now every library does its own thing, which can be quite jarring when using different apps.

I guess, to a degree, this is what lipgloss is trying to be/solve: https://github.com/marcoroth/lipgloss-ruby

To a degree, yes, but I was thinking something in the line of a commonly agreed on file format that defines a default style. To be used by libraries like charm, ratatui, tty, heck maybe even older ones like libnewt etc.

A bit like base16 but with more definitions and better semantics.

Re: Charm Ruby – Glamorous Terminal Libraries for Ruby

#24
Sorry for the semi-off topic question but does anyone know if there is something similar for Rust or if there's a good starting point for building an FFI for Charm in Rust? I'm curious to know if I can integrate Charm into my existing projects because I absolutely love their tools!

Re: Charm Ruby – Glamorous Terminal Libraries for Ruby

#25
post #24

Sorry for the semi-off topic question but does anyone know if there is something similar for Rust or if there's a good starting point for building an FFI for Charm in Rust? I'm curious to know if I can integrate Charm into my existing projects because I absolutely love their tools!

Somebody mentioned Ratatui to me today: https://docs.rs/ratatui/latest/ratatui/index.html

Re: Charm Ruby – Glamorous Terminal Libraries for Ruby

#26
post #24

Sorry for the semi-off topic question but does anyone know if there is something similar for Rust or if there's a good starting point for building an FFI for Charm in Rust? I'm curious to know if I can integrate Charm into my existing projects because I absolutely love their tools!

Somebody mentioned Ratatui to me today: https://docs.rs/ratatui/latest/ratatui/index.html

Oh! I wonder how I never noticed this before, thank you!

Re: Charm Ruby – Glamorous Terminal Libraries for Ruby

#28

Interesting, huge fan of charm and ruby. Will definitely keep this in mind.

Definitely just the beginning. Any ideas or feedback is very much appreciated as we build out these libraries!

What was the biggest challenge refactoring it from Go to Ruby?

Re: Charm Ruby – Glamorous Terminal Libraries for Ruby

#30
post #24

Sorry for the semi-off topic question but does anyone know if there is something similar for Rust or if there's a good starting point for building an FFI for Charm in Rust? I'm curious to know if I can integrate Charm into my existing projects because I absolutely love their tools!

I maintain a huh clone: https://github.com/jdx/demand
Post reply on HN