The Accidental Rubyist

invalid byte sequence in UTF-8

More thoughts on scrollpane and splitpane

leave a comment »

More work on paper. I think now I am ready to start coding. Situations are like:
a splitpane contains one or 2 scrollpanes. The scrollpane contains, say, a table or list or form.
Now the table knows how to print itself, but the scrollpane must clip part of it, and the splitpane
may further clip more. So what’s shown on screen is after each layer has clipped. Getting this
into the existing framework required some thought.

Trickier is that when a scrollpane scrolls an object, the focus within that widget has to be adjusted
accordingly by the object. Similarly, when a user tabs past last visible object in a
scrollpane, object should scroll up.


# print the last 10 lines of a file (emulate ‘tail’); NOTE reads entire file!
$ cat | ruby -e ‘puts STDIN.readlines.reverse!.slice(0,10).reverse!’


HTML.vim,
mtsend.py

Advertisements

Written by totalrecall

October 28, 2009 at 9:26 am

Posted in rbcurse

Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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: