The Accidental Rubyist

invalid byte sequence in UTF-8

Progress on scrollpanes within tabbedpanes (ncurses)

leave a comment »

Thankfully, some progress on the cursor front. These images show a textview. In one case the textview is inside a scrollpane inside a tabbedpane. In the other the textarea is directly inside a tabbedpane.

tabbedpane containing scrollpane with textview widget

TabbedPane with ScrollPane

TabbedPane with TextArea directly placed in it

TabbedPane with TextArea directly placed in it

I am reworking and trying to simplify the cursor placement – a major headache until now with such embedded objects.
In some previous screenshots, scrollpanes were starting display from 1,1 instead of 0,0. Correcting that has resulted in breakage, but helped in simplifying some code. I am really hoping to rewrite scrollpanes and splitpanes with a simpler approach if i can think of one. The ncurses method copywin is a major headache and keeps getting me.

I am hoping to write a splitpane like widget which is more like vim’s splits. So all the splits are on one level. Currently, a splitpane takes only 2 objects. You can embed a splitpane inside another, which is what most examples give. This makes it painful for the user to indicate which splitpane he wishes to expand or contract with a keyboard.

# If you are one of those sorry ba$tards who has to work with python you’ll know what I mean.
— Micha Niskin


Written by totalrecall

February 8, 2010 at 1:16 pm

Posted in rbcurse

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: