Below is the Finger client from SBBS. I want to know how to add code to
save the dest.slice from each request to be recalled with a (perhaps)
TAB keystroke or someother keystroke pair.
Re: Finger mod
By: Finnigann to All on Thu Jan 31 2008 19:40:00
Below is the Finger client from SBBS. I want to know how to add code to
save the dest.slice from each request to be recalled with a (perhaps)
TAB keystroke or someother keystroke pair.
Where it says
host = dest.slice(hp+1);
Thanks. I'll comb other .JS files for suitable code examples. to see if
they paste together and run/work.
I was looking at lightbar.js, how would this be called? I assume, that
at the least, I'd have to pass the file location to provide the lines of text to make up the menu.
I was looking at lightbar.js, how would this be called? I assume, that
at the least, I'd have to pass the file location to provide the lines of text to make up the menu.
Ok, try this:
Now save that as /sbbs/exec/hostpick.js or something similar, and try running it. It should give you a list of BBSs by *name* and when you make your selection, it should return the matching *host* for that BBS.
See if you can get that going.
Re: Re: Finger mod
By: Finnigann to Angus McLeod on Fri Feb 01 2008 18:22:00
Ok, try this:
Create a file called /sbbs/exec/hosts.pick or similar, and in it, put
the following:
Now code up a piece of JS as follows:
load("lightbar.js");
See if you can get that going.
Re: Re: Finger mod
By: Finnigann to Angus McLeod on Fri Feb 01 2008 06:22 pm
I was looking at lightbar.js, how would this be called? I assume, that
at the least, I'd have to pass the file location to provide the lines of text to make up the menu.
lbshell.js uses it.
Re: Re: Finger mod
By: Angus McLeod to Finnigann on Sat Feb 02 2008 09:12 am
Ok, try this:
Now save that as /sbbs/exec/hostpick.js or something similar, and try running it. It should give you a list of BBSs by *name* and when you make your selection, it should return the matching *host* for that BBS.
See if you can get that going.
Did I document it somewhere? It's great that someone can actually
figure out how to use the stuff I'm writing... every time I add
something to CVS, I do it "knowing" that nobody will use it anyways,
but since it might be usefull, I add it anyways.
It's heartwarming to see someone use it in code.
*sniff*
Did I document it somewhere? It's great that someone can actually figure ou how to use the stuff I'm writing... every time I add something to CVS, I do "knowing" that nobody will use it anyways, but since it might be usefull, I it anyways.
It's heartwarming to see someone use it in code.
*sniff*
Just curious, can the lightbar be called with a control key sequence? I
was thinking about control-tab. As TAB completes the addresses in some browsers.
[Deuce]
Perhaps a fewe more comments in the comments section on usage. For us
simple folks.
Hey buddy I'm your biggest fan and I'll cvs nightly if it'll make you feel better, but if the support or examples for it are already there, why is there not an included lightbar command shell for everyone who wants it? Demand is not high enough to make it a default or stock option?
Ok, try this:
Now save that as /sbbs/exec/hostpick.js or something similar, and try running it. It should give you a list of BBSs by *name* and when you mak your selection, it should return the matching *host* for that BBS.
See if you can get that going.
Did I document it somewhere?
It's great that someone can actually figure out how to use the stuff
I'm writing... every time I add something to CVS, I do "knowing" that nobody will use it anyways, but since it might be usefull, I add it anyways.
It's heartwarming to see someone use it in code.
*sniff*
Create a file called /sbbs/exec/hosts.pick or similar, and in it, put the following:
I'm gonna try to substitute this:
hosts = "%juser/%s.fin"; %4
for hosts.pick
so each user can have/create his own list, I could seed it with your
list, thou.
Just curious, can the lightbar be called with a control key sequence? I
was thinking about control-tab. As TAB completes the addresses in some browsers.
Re: Re: Finger mod
By: Finnigann to Angus McLeod on Sat Feb 02 2008 15:46:00
Create a file called /sbbs/exec/hosts.pick or similar, and in it, put the following:
I'm gonna try to substitute this:
hosts = "%juser/%s.fin"; %4
for hosts.pick
so each user can have/create his own list, I could seed it with your
list, thou.
Oh, I think I see what you're doing. But do %j and %4 apply to JS
code?
Did I document it somewhere?
ROTFL! You? Document?!?? LOL! ;-)
Re: Re: Finger mod
By: Angus McLeod to Deuce on Sun Feb 03 2008 12:51 am
Did I document it somewhere?
ROTFL! You? Document?!?? LOL! ;-)
Hey, I documented something once!
ROTFL! You? Document?!?? LOL! ;-)
Hey, I documented something once!
Was it a really bad experience?
Did I document it somewhere?
ROTFL! You? Document?!?? LOL! ;-)
Hey, I documented something once!
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.
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.
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.
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 trivi Basically, the first draw() or getval() called after an additem() would upda 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.
As ever, the real problem with console I/O is this: You can't easily 'repair' those areas of the screen that your pop-up clobbers. You can't copy/save a rectangular area of the console, pop up a pick-list over that area, and then restore the copy/save area to it's original state when the pick-list is no longer needed. Unless the length of the list can be controlled, you can't control how much of the screen gets disrupted.
I've actually looked into having Synchronet track outgoing ANSI so it *could* restore arbitrary parts the screen, but decided I didn't want
to bother since I personally wouldn't that often enough.
I've actually looked into having Synchronet track outgoing ANSI so it *could* restore arbitrary parts the screen, but decided I didn't want
to bother since I personally wouldn't that often enough.
I see that as a huge overhead for a feature that is of relatively
infrequent utility. And that's without taking the development effort into account.
Sometimes though, I still wish I had it. :-)
Sysop: | digital man |
---|---|
Location: | Riverside County, California |
Users: | 1,043 |
Nodes: | 15 (0 / 15) |
Uptime: | 41:20:45 |
Calls: | 500,899 |
Calls today: | 2 |
Files: | 109,370 |
D/L today: |
4,666 files (476M bytes) |
Messages: | 304,218 |