Archive for the 'ncurses' Category

rbcurse 0.1.3 released

November 4, 2009

Just released 0.1.3 on http://gemcutter.org/gems/rbcurse containing a tiny bug fix in Listbox.
Silly of me not to have released a version for 1.9 when I had made the changes and tested out.
Without committing or releasing I started work on SplitPanes and Scrollpanes etc which have
resulted in major changes to base classes too. So now the first [...]

Progress on SplitPane and ScrollPane

November 1, 2009

Great progress on rbcurse’s Scrollpanes and Splitpanes. Scrollpanes contain a viewport which handles the window or porthole into it’s child object. The scrollpane handles communication with the viewport, and the scrollbars. I’ve just added some neat scrollbars. However, there’s a lot of drudge work to be done such as event listeners, and allowing editable objects [...]

ncurses not working on ruby 1.9 ?

October 3, 2009

Well, after making changes to the ncurses-0.9.1 source, compiling, creating a gemspec, building a gem and installing it… it still won’t work under ruby 1.9.1. The examples give this error:
form.rb:21:in `’: undefined method `new_field’ for Ncurses::Form:Module (NoMethodError)
I went to the elliottcable version (which compiled) — he’s already made the corrections to ncurses, and the examples [...]

ncurses ruby gem

October 2, 2009

I had in the installation of rbcurse, asked for the gem of ncurses-ruby to be installed.
Appa, there is no such gem so I must have downloaded the tgz from berlios.de and put it into the gem folder or something like that and forgotten about it.
After trying something like that, i browsed around again, and found [...]

Sample: SQL Client in ruby ncurses

February 14, 2009

I am putting up a small SQL Client made in about 3 hours using rbcurse. The idea of course was to see deficiencies in the library, and yes, for adhoc queries auto_sizing of columns is required. Need to work on that.
The demo shows a textarea, enter a query and press Run to see the results [...]

First real app with Ruby-Curses (rbcurse)

January 18, 2009

I decided to start doing a small app to test out the widgets (VIDEO). More real life than the eye-candy I’ve been posting till now. Its a TODO like app which will actually manage my TODO, FIXME, DONE list that I am using for this. The base is a YAML file – not the best [...]

Editable Multi-column tables

January 13, 2009

Quite excited to share that I’ve just got editable tables coded and running. String, numeric, checkboxes (for boolean) and combolists. That sort of covers the minimum requirements of an editable table. Also see earlier post with a non-edit table that allowed column moving, resizing etc.
A quicktime file demos this 2.6 MB).  Updated on Jan [...]

Video grabs of ruby curses

December 26, 2008

NOTE: updated demo 1 on Dec 29 with textarea bug fixes, para wrapping, and a quick-dirty file chooser using the existing message box.

Uploaded some video captures of the test programs.
Note: Textarea had wrapping bugs in demo, subsequently fixed.
Demo 1: full screen demo of most widgets (new one uploaded 12/29/08,  7 MB)
Demo 2: message boxes (4)
Demo [...]

xterm-color key issues fixed

December 22, 2008

xterm-color blows as a TERM. Even vt100/200, xterm (and xterm-256color) send proper values for F1..F4 and backtab. xterm-color sends a 27,79,80 for F1 (i.e., three keys). So I spent the wee hours of last night hacking some ugly lines into window.getchar() to trap these combinations.
Then i found that backtab is 27,79,81. Added more ugly code [...]

Hotkeys with Labels (and other buttons)

December 21, 2008

We may associate a label with any field/widget with the label_for method. If a mnemonic has been defined for the label, it will register the ALT-key, to transfer keyboard focus to that field.
If that field is a button (responds to fire), its fire will be called.
e.g. we had created some fields in a loop. Now [...]