Vedeu: Ruby-based terminal GUI framework
I've been working on a terminal/console based GUI framework for Ruby for around 4/5 months. Its still very basic, but there's a complimentary mp3 playing app which uses it to showcase capabilities. Not quite cross-platform, and still needs a bit of work. Welcoming pull requests.
Vedeu: https://github.com/gavinlaking/vedeu
(The mp3 player; Playa: https://github.com/gavinlaking/playa).
19 comments
[ 2.9 ms ] story [ 22.4 ms ] threadI'm an amateur ruby developer. You should announce your project to the ruby-users mailing list: ruby-talk@ruby-lang.org
best regards and thanks for the code :-)
I've tried to escape the tyranny of NCurses to be honest. NCurses is procedural in nature and I wanted to try to provide an OOP interface as my solution. I'm also experimenting with events which I think make implementing GUI apps with this framework much easier and flexible.
[0] https://github.com/JEG2/highline
I've been using escort[0] for my CLI utilities, and it seems like a decent compromise between providing a useful number of features and not bloating your app into a huge framework with a complex DSL to figure out. It is a little short on interactivity once the command is running, though.
[0] https://github.com/skorks/escort
https://en.wikipedia.org/wiki/Ncurses
I doubt I'll get around to pursuing the game in any amount of time, but I definitely support the project. It fills a niche I was looking for.
Some compare&contrast would be a nice introduction for those who know one but not the other (like me).
EDIT: it looks like this one really doesn't use ncurses at all relying instead on terminal escape codes: https://github.com/gavinlaking/vedeu/blob/master/lib/vedeu/s...
Urwid can use that too, but has a few other display backends: http://urwid.org/reference/display_modules.html#module-urwid...
Urwid is also MUCH older (first Changelog item from 2004).
Of course, Urwid is still Python, so it may not be a good fit if you absolutely need a Ruby library.