• Finger mod

    From Finnigann@VERT/BNB to All on Thu Jan 31 19:40:00 2008
    ã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.ããIf possible, multiple destinations could be stored in a list withãhighlight bar.ããIf this mod happens, & if it's added to the main distribution, have aãsample include vert.synchro.net and the home system as examples.ããMight there be a way to incorporate systems found in DoVeNet? This lastãpart was inspired by the rash of knuckleheads (lately) found posting onãDoVeNet and a desire to learn more about to whom I (and others) replyãto. This part might be added to the Operators menu availible to sysopsãwhile posting.ããã// A simple finger clientããfunction write(str)ã{ã output_buf += str;ã}ããif(argc>0 && argv[0].indexOf('@')!=-1)ã dest = argv[0];ãelse if((dest = prompt("User (user@hostname)"))==null)ã exit();ããif((hp = dest.indexOf('@'))==-1) {ã dest += "@" + system.host_name;ã hp = dest.indexOf('@')ã}ããhost = dest.slice(hp+1);ãsock = new Socket();ã//sock.debug = true;ãsock.bind(0,server.interface_ip_address);ãif(!sock.connect(host,"finger"))ã alert("Connection to " + host + " failed with error " +ãsock.last_error);ãelse {ã sock.send(dest.slice(0,hp)+"\r\n");ã while(bbs.online && sock.is_connected)ã print(sock.readline());ã}ãsock.close();ãããã When you make the finding yourself - even ifã you're the last person on Earth to see theã light - you'll never forget it. -- Carl Saganããã... A yer ago I kudnt spel jeanyus now I are won.ã--- MultiMail/Win32 v0.47ã þ Synchronet þ Bits-N-Bytes - bnb.dtdns.net / bnb.synchro.net (web use port 666)ã
  • From Angus McLeod@VERT/ANJO to Finnigann on Thu Jan 31 22:05:00 2008
    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);ããthe string 'host' contains everything after the '@'. You should be able ãto save it ('host') at that point, if you want to recall it later. You'd ãneed to open a file, write 'host' to disk, and close the file again. Note ãthat the contents of 'host' is obtained by grabbing everything after the ã'@' in string 'dest'.ããA few lines later, in the code, you see that string ('host') being used to ãconnect to the remote system:ãã sock.connect(host,"finger")ãã(It's imbedded in an 'if' statement.) Prior to this, you can set 'host' ãto whatever you like. Or you can manipulate the end of the 'dest' string ãto whatever you want *prior* to slicing off the host portion. Same ãeffect.ããThe host portion of 'dest' already defaults to system.host_name (your own ãsystem) if you leave off the '@'. So if you just putãã .nodelist ããthe code adds "@yourdomain.com" automatically. You can see it doing that ãhere:ãã dest += "@" + system.host_name;ããNothing to prevent you adding extra code to use something else! Like if ãyou putãã .nodelist*ããthe code could look up the last 'host' you used (open the disk file and ãread the contents), and substitute that.ããIf you really want to do some coding, you could even invoke some sort of ãpick-list routine, that sets the 'dest' string according to your pick. ãThe '*' at the end might cause the pick-list to pop up. ããYou can do pretty much what you want, you know. But the more you want, ãthe more coding is involved, and the harder it gets.ãã---ãPlaying: "Peaches & diesel" by "Eric Clapton" from the "Slowhand" album.ã þ Synchronet þ Making sure Jason works OK at
    The ANJO BBSã
  • From Finnigann@VERT/BNB to Angus McLeod on Fri Feb 1 18:22:00 2008
    ã //- With quill in hand, Finnigann ã sends off a short note to Angus McLeod, ã about Finger mod -\\ãã AM> Re: Finger modã AM> 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.ãã AM> Where it saysãã AM> 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.ããBut other than that, getting back the selected text and getting itãplaced into 'host' will be a challenge (to put it kindly)ããI'll post whatever progress when I get to a stoping place.ããThanks for your input.ãããã When you make the finding yourself - even ifã you're the last person on Earth to see theã light - you'll never forget it. -- Carl Saganããã... Chopped cabbage: It's not just a good idea, it's the slaw!ã--- MultiMail/Win32 v0.47ã þ Synchronet þ Bits-N-Bytes - bnb.dtdns.net / bnb.synchro.net (web use port
    666)ã
  • From Angus McLeod@VERT/ANJO to Finnigann on Sat Feb 2 09:12:00 2008
    Re: Re: Finger modã By: Finnigann to Angus McLeod on Fri Feb 01 2008 18:22:00ãã > 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.ããOk, try this:ããCreate a file called /sbbs/exec/hosts.pick or similar, and in it, put the ãfollowing:ãã nimbus.synchro.net^The Nimbus BBSã pbox.servebbs.com^The Penalty Boxã phantomrage.org^PhantomRage Studiosã bnb.synchro.net^Bits-N-Bytesã www.hdcbbs.net^The Hard Drive Cafeã vert.synchro.net^Vertrauenã bbs.foxybanana.com^The Realm of Dreamsã derbycitybbs.com^Derby City BBSããObviously, you can put in whatever you want here, but follow the same ãformat. Note the "^" character separating the hostname from the BBS name. ãAlso, I am indenting by two spaces -- you don't do that in the actual ãfile.ããNow code up a piece of JS as follows:ãã load("lightbar.js");ãã // the name of the hosts picklist file you usedã hosts = "/sbbs/exec/hosts.pick";ãã console.clear(); // say howdyã writeln( "Host-Pick Test Program" );ãã // create lightbar object and set up a few optionsã pick = new Lightbar();ã pick.xpos = 10; pick.ypos = 3;ã pick.fg = 2; pick.bg = 0;ã pick.hfg = 14; pick.hbg = 7;ãã // create file object for hosts file and open it for readingã f = new File( hosts );ã if (!f.open("r")) {ã writeln( "Can't open \"" + hosts + "\"" );ã exit;ã }ãã // read each line, split it into parts,ã // and add them to the lightbar objectã while (line = f.readln()) {ã part = line.split( "^" ); // same separatorã pick.add( part[1], part[0] );ã }ã f.close(); // done with fileãã v = pick.getval(); // get value from lightbar object ãã // display resultsã console.clear();ã writeln( "Returned Value = " + v );ã console.pause();ãã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.ãã---ãAmarok: 17,459 tracks from 1,238 albums by 1,349 artists, but none playing.ã þ Synchronet þ
    Making sure Jason works OK at The ANJO BBSã
  • From Deuce@VERT/SYNCNIX to Finnigann on Sat Feb 2 12:15:00 2008
    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.ãã--- ãSynchronet - Jump on the Web 0.2 bandwagon!ãã---ã þ Synchronet þ My Brand-New BBS (All the cool SysOps run STOCK!)ã
  • From Deuce@VERT/SYNCNIX to Angus McLeod on Sat Feb 2 12:19:00 2008
    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*ãã--- ãSynchronet - Jump on the Web 0.2 bandwagon!ãã---ã þ Synchronet þ My Brand-New BBS (All the cool SysOps run STOCK!)ã
  • From Finnigann@VERT/BNB to Angus McLeod on Sat Feb 2 15:46:00 2008
    ã //- With quill in hand, Finnigann ã sends off a short note to Angus McLeod, ã about Re: Finger mod -\\ãã AM> Re: Re: Finger modã AM> By: Finnigann to Angus McLeod on Fri Feb 01 2008 18:22:00ãã AM> Ok, try this:ãã AM> Create a file called /sbbs/exec/hosts.pick or similar, and in it, putã AM> 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.ã ãã AM> Now code up a piece of JS as follows:ãã AM> load("lightbar.js");ããI actually had this line (-: (Didn't know how to use it, 'till now)ããããããã AM> See if you can get that going.ãã OK Thanks... weekend project ð|:}>ããããã When you make the finding yourself - even ifã you're the last person on Earth to see theã light - you'll never forget it. -- Carl Saganããã... Her sewing machine's been out of thread for some time now. ã--- MultiMail/Win32 v0.47ã þ Synchronet þ Bits-N-Bytes - bnb.dtdns.net / bnb.synchro.net (web use port 666)ã
  • From Finnigann@VERT/BNB to Deuce on Sat Feb 2 18:20:00 2008
    ã //- With quill in hand, Finnigann ã sends off a short note to Deuce, ã about Re: Finger mod -\\ãã De> Re: Re: Finger modã De> 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.ãã De> lbshell.js uses it.ãããThanks. I found that file.ããAngus also provided some code for me to work with. Between those two, Iãhave a chance. (-:ãã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.ããAnyway, thanks for the tip.ãããã When you make the finding yourself - even ifã you're the last person on Earth to see theã light - you'll never forget it. -- Carl Saganããã... Forgot to pay his brain bill.ã--- MultiMail/Win32 v0.47ã þ Synchronet þ Bits-N-Bytes - bnb.dtdns.net / bnb.synchro.net (web use port 666)ã
  • From Finnigann@VERT/BNB to Angus McLeod on Sat Feb 2 18:31:00 2008
    ã //- With quill in hand, Finnigann ã sends off a short note to Deuce, ã about Re: Finger mod -\\ãã De> Re: Re: Finger modã De> 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.ãã De> Did I document it somewhere? It's great that someone can actuallyã De> figure out how to use the stuff I'm writing... every time I addã De> something to CVS, I do it "knowing" that nobody will use it anyways,ã De> but since it might be usefull, I add it anyways.ãã De> It's heartwarming to see someone use it in code.ãã De> *sniff*ã ã Valentine's day is comming up...ãã [Deuce]ã Perhaps a fewe more comments in the comments section on usage. For usã simple folks.ãããã When you make the finding yourself - even ifã you're the last person on Earth to see theã light - you'll never forget it. -- Carl Saganããã... Sex is a Misdemeanor. The more I miss it, de meanor I get!ã--- MultiMail/Win32 v0.47ã þ Synchronet þ Bits-N-Bytes - bnb.dtdns.net / bnb.synchro.net (web use port 666)ã
  • From The Immortal@VERT/LIGHTNIN to Deuce on Sat Feb 2 18:53:00 2008
    Re: Re: Finger modã By: Deuce to Angus McLeod on Sat Feb 02 2008 12:19 pmãã > ã > 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*ã > ã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?ããI'm still overcoming the woozy feeling from seeing 8 pages of javascriptãI need to use for arrow key driven menus.ãã---ã þ Synchronet þ lightningbbs.dyndns.org Come on by and say hi!!!!!!ã
  • From Deuce@VERT/SYNCNIX to Finnigann on Sat Feb 2 19:41:00 2008
    Re: Re: Finger modã By: Finnigann to Deuce on Sat Feb 02 2008 06:20 pmãã > 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.ããI'm not sure what you mean exactly, but the answer is probably "yes"ãã--- ãSynchronet - Jump on the Web 0.2 bandwagon!ãã---ã þ Synchronet þ My Brand-New BBS (All the cool SysOps run STOCK!)ã
  • From Deuce@VERT/SYNCNIX to Finnigann on Sat Feb 2 19:42:00 2008
    Re: Re: Finger modã By: Finnigann to Angus McLeod on Sat Feb 02 2008 06:31 pmãã > [Deuce]ã > Perhaps a fewe more comments in the comments section on usage. For usã > simple folks.ããYeah, of some actual documentation...ãã--- ãSynchronet - Jump on the Web 0.2 bandwagon!ãã---ã þ Synchronet þ My Brand-New BBS (All the cool SysOps run STOCK!)ã
  • From Deuce@VERT/SYNCNIX to The Immortal on Sat Feb 2 19:43:00 2008
    Re: Re: Finger modã By: The Immortal to Deuce on Sat Feb 02 2008 06:53 pmãã > 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?ããThe default config files are usually only updated before a release.ãã--- ãSynchronet - Jump on the Web 0.2 bandwagon!ãã---ã þ Synchronet þ My Brand-New BBS (All the cool SysOps run STOCK!)ã
  • From Angus McLeod@VERT/ANJO to Deuce on Sun Feb 3 00:51:00 2008
    Re: Re: Finger modã By: Deuce to Angus McLeod on Sat Feb 02 2008 12:19:00ãã > > 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?ããROTFL! You? Document?!?? LOL! ;-)ãã > 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.ããWell, there's a bunch I couldn't quite figure out, but that doesn't mean ãit can't be used!ãã > It's heartwarming to see someone use it in code.ã > ã > *sniff*ããYou'll make me cry, now.ãã---ãPlaying: "Bye bye love" by "The Cars" from "The Cars" album.ã þ Synchronet þ Making sure Jason works OK at The ANJO BBSã
  • From Angus McLeod@VERT/ANJO to Finnigann on Sun Feb 3 00:52:00 2008
    Re: Re: Finger modã By: Finnigann to Angus McLeod on Sat Feb 02 2008 15:46:00ãã > AM> Create a file called /sbbs/exec/hosts.pick or similar, and in it, putã > AM> 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 tyo JS code?ãã---ãPlaying: "Moving in stereo" by "The Cars" from "The Cars" album.ã þ Synchronet þ Making sure Jason works OK at The ANJO BBSã
  • From Angus McLeod@VERT/ANJO to Finnigann on Sun Feb 3 00:58:00 2008
    Re: Re: Finger modã By: Finnigann to Deuce on Sat Feb 02 2008 18:20:00ãã > 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.ããYes, the problem is this part of the finger program:ãã while((dest = prompt("User (user@hostname)")) != null) {ã . . .ã }ããWhat you need is some way to know if the prompt() entry was terminated ãwith a regular <ENTER> key or with something else like <TAB>, <ESC>, <F1>, ãor so forth. So if you typeãã .nodelist<ENTER>ããthe code knows to produce the local node list, but if you typeãã .nodelist<TAB>ããthe code knows to pop up the picklist, and so forth. I've not yet worked ãout how to do that.ãã---ãPlaying: "All mixed up" by "The Cars" from "The Cars" album.ã þ Synchronet þ
    Making sure Jason works OK at The ANJO BBSã
  • From Finnigann@VERT/BNB to Angus McLeod on Sun Feb 3 02:18:00 2008
    ã //- With quill in hand, Finnigann ã sends off a short note to Angus McLeod, ã about Re: Finger mod -\\ãã AM> Re: Re: Finger modã AM> By: Finnigann to Angus McLeod on Sat Feb 02 2008 15:46:00ãã > AM> Create a file called /sbbs/exec/hosts.pick or similar, and in it, putã > AM> 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.ãã AM> Oh, I think I see what you're doing. But do %j and %4 apply to JSã AM> code?ã ã I think I saw these shortcut's used elsewhere. Knowing Rob, I shouldã think they would.ãã I hope so, anyway.ãããã When you make the finding yourself - even ifã you're the last person on Earth to see theã light - you'll never forget it. -- Carl Saganããã... I thought cat's owners had nine lives too...guess I was wrong!ã--- MultiMail/Win32 v0.47ã þ Synchronet þ Bits-N-Bytes - bnb.dtdns.net / bnb.synchro.net (web use port 666)ã
  • From Deuce@VERT/SYNCNIX to Angus McLeod on Sun Feb 3 04:24:00 2008
    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!ãã--- ãSynchronet - Jump on the Web 0.2 bandwagon!ãã---ã þ Synchronet þ My Brand-New BBS (All the cool SysOps run STOCK!)ã
  • From Finnigann@VERT/BNB to Deuce on Sun Feb 3 10:59:00 2008
    ã //- With quill in hand, Finnigann ã sends off a short note to Deuce, ã about Re: Finger mod -\\ãã De> Re: Re: Finger modã De> By: Angus McLeod to Deuce on Sun Feb 03 2008 12:51 amãã > > Did I document it somewhere?ã >ã > ROTFL! You? Document?!?? LOL! ;-)ãã De> Hey, I documented something once!ã ã Was it a really bad experience?ãããã When you make the finding yourself - even ifã you're the last person on Earth to see theã light - you'll never forget it. -- Carl Saganããã... Confucius Say; Man who eat many prunes get good run for money. ã--- MultiMail/Win32 v0.47ã þ Synchronet þ Bits-N-Bytes - bnb.dtdns.net / bnb.synchro.net (web use port 666)ã
  • From Deuce@VERT/SYNCNIX to Finnigann on Sun Feb 3 23:34:00 2008
    Re: Re: Finger modã By: Finnigann to Deuce on Sun Feb 03 2008 10:59 amãã > > ROTFL! You? Document?!?? LOL! ;-)ã >ã > De> Hey, I documented something once!ã >ã > Was it a really bad experience?ããYes, I still have the scars...ãã--- ãSynchronet - Jump on the Web 0.2 bandwagon!ãã---ã þ Synchronet þ My Brand-New BBS (All the cool SysOps run STOCK!)ã
  • From Angus McLeod@VERT/ANJO to Deuce on Sun Feb 3 21:33:00 2008
    Re: Re: Finger modã By: Deuce to Angus McLeod on Sun Feb 03 2008 04:24:00ãã > > > 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.ãã---ãPlaying: "It's Good to Be in Love" by "Frou Frou" from the "Details" album.ã þ Synchronet þ Making sure Jason works OK at The ANJO BBSã
  • From Deuce@VERT/SYNCNIX to Angus McLeod on Mon Feb 4 13:36:00 2008
    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!)ã
  • From Angus McLeod@VERT/ANJO to Deuce on Mon Feb 4 21:03:00 2008
    Re: Re: Finger modã By: Deuce to Angus McLeod on Mon Feb 04 2008 13:36:00ãã > > 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.ããA rolling value isn't particularly great, except you know that only the ãinput area (one part of one line) will be affected, and on completion, the ãselected value will remain in that same area, effectively 'repairing' the ãscreen.ãã---ãPlaying: "Annie" by "James Blunt" from the "All The Lost Souls" album.ã þ Synchronet þ Making sure Jason works OK at The ANJO BBSã
  • From Deuce@VERT/SYNCNIX to Angus McLeod on Tue Feb 5 10:34:00 2008
    Re: Re: Finger modã By: Angus McLeod to Deuce on Mon Feb 04 2008 09:03 pmãã > 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.ããRight. Which is why lbshell.js uses a known "image" for the background so itãcan restore arbitrary rectangles of the screen. I've actually looked intoãhaving Synchronet track outgoing ANSI so it *could* restore arbitrary parts ofãthe screen, but decided I didn't want to bother since I personally wouldn't useãthat often enough.ãã--- ãSynchronet - Jump on the Web 0.2 bandwagon!ãã---ã þ Synchronet þ My Brand-New BBS (All the cool SysOps run STOCK!)ã
  • From Angus McLeod@VERT/ANJO to Deuce on Tue Feb 5 19:53:00 2008
    Re: Re: Finger modã By: Deuce to Angus McLeod on Tue Feb 05 2008 10:34:00ãã > 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.ãã---ãPlaying: "You don't know how it feels" by "Tom Petty"ã from the "Wildflowers" album.ã þ Synchronet þ Making sure Jason works OK at The ANJO BBSã
  • From Deuce@VERT/SYNCNIX to Angus McLeod on Tue Feb 5 17:10:00 2008
    Re: Re: Finger modã By: Angus McLeod to Deuce on Tue Feb 05 2008 07:53 pmãã > > 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.ããThe overhead is pretty low actually... and the code is already written. Theãonly extra work would be in making the current code thread-safe which would beãfairly trivial since it almost is already.ããHowever, the usefullness of it is still most likely not worth the minimalãeffort it would require since it would still not be generic. Just becauseãsomething is what was indented to be on the remote screen is no guaranteeãthat's what is there. Further, there is the possibility that ANSI is disabled,ãso redrawing a small segment requires redrawing the entire screen etc.ããSometimes though, I still wish I had it. :-)ãã--- ãSynchronet - Jump on the Web 0.2 bandwagon!ãã---ã þ Synchronet þ My Brand-New BBS (All the cool SysOps run STOCK!)ã
  • From Finnigann@VERT/BNB to Deuce on Tue Feb 5 21:11:00 2008
    ã //- With quill in hand, Finnigann ã sends off a short note to Deuce,ã about Re: Finger mod -\\ããã De> Sometimes though, I still wish I had it. :-)ãããThis [wand-shaped package] just arrived via Owl Post... FromãOlivander's of London. Wonder what it could be?ããããã(Yes, I fallen into the world of Harry Potter...)ãããã When you make the finding yourself - even ifã you're the last person on Earth to see theã light - you'll never forget it. -- Carl Saganããã... "Why Johnny Can't Read" - Now available on VHSã--- MultiMail/Win32 v0.47ã þ Synchronet þ Bits-N-Bytes - bnb.dtdns.net / bnb.synchro.net (web use port 666)ã