Subj : Re: Finger mod
To   : Angus McLeod
From : Deuce
Date : Mon Feb 04 2008 01:36 pm

 Re: Re: Finger mod
 By: Angus McLeod to Deuce on Sun Feb 03 2008 09:33 pm

> Actually, it isn't too bad.  I assume the callbask() is used by the
> lbshell?  I have not looked to see, but I guess it has to have some
> immediate purpose.

Yeah, if defined, it is called immediately before attempting input.  This
allows intercepting console messages and such.

> The only thing that I would like to see is the option to have a longer
> list than there are lines to display it.  So say there are 15 items in the
> list, but only 8 lines to the bottom of the screen (or I explicitly limit
> it to an 8-line display) then 8 lines will be displayed, and if the cursor
> moves to the bottom and beyond, the eight lines roll up, eliminating line
> #1 at the top, and revealing line #9 at the bottom.

Yeah, I looked into this once... and seriously though about using a graphic
object (graphic.js).  Essentially, draw the entire lightbar into two graphics
contexts... one for selected and one for not selected, then use the draw()
method to update the screen.  Wouldn't be all that hard to do,  I just never
got around to it.

> Yes, it is non-trivial, and there isn't much reward for doing it, but it
> would allow an application to control how much of the screen was to be
> clobbered by the lightbar list.  Also, it would allow you to set the
> number of lines to ONE and just have a rolling value.  Hmmm... perhaps a
> separate type of object would be better than using a maximally collapsed
> lightbar list?  Probably.

Well, since graphic.js is already written, it would actually be pretty trivial.
Basically, the first draw() or getval() called after an additem() would update
the graphical representation... then the draw() function be be from the top
offset to top+height etc.

A single rolling value wouldn't be any better or worse actually.

---
Synchronet - Jump on the Web 0.2 bandwagon!

---
� Synchronet � My Brand-New BBS (All the cool SysOps run STOCK!)