• Internal codes in Baja

    From Tegularius@VERT/BAUDHOUS to All on Thu Jul 2 19:33:28 2009
    I would like to write a command to select a file area by means of a mnemonicãcode (instead of by number after scrolling through perhaps several pages ofãlistings, as the default provides). ããThe FILE_SET_AREA function works fine as long as the user knows the completeãinternal code of a file area and types it in. However, this ordinarilyãconsists of the internal code of the library + that of the area within theãlibrary. I don't want to require the user to type anything but the code ofãthe area, without the library prefix.ããSo how can I get a hold of either the internal code (preferably) or at least ãthe short name of the currently selected library in a Baja program?ãã"@LIB@" displays the library's short name but I haven't seen a way to doãanything with @-codes except display them.ãã---ã þ Synchronet þ The Bauding House - baudhous.synchro.netã
  • From Digital Man@VERT to Tegularius on Fri Jul 3 02:37:13 2009
    Re: Internal codes in Bajaã By: Tegularius to All on Thu Jul 02 2009 07:33 pmãã > I would like to write a command to select a file area by means of aã > mnemonic code (instead of by number after scrolling through perhaps severalã > pages of listings, as the default provides).ã >ã > The FILE_SET_AREA function works fine as long as the user knows theã > complete internal code of a file area and types it in. However, thisã > ordinarily consists of the internal code of the library + that of the areaã > within the library. I don't want to require the user to type anything butã > the code of the area, without the library prefix.ããYou can choose what you your internal codes to be. If don't want the libraryãcode prefix, just set it to blank in SCFG.ãã > So how can I get a hold of either the internal code (preferably) or atã > least the short name of the currently selected library in a Baja program?ããI can't think of a way in Baja off-hand. My suggestion would be to useãJavaScript instead where it is most certainly possible.ãã > "@LIB@" displays the library's short name but I haven't seen a way to doã > anything with @-codes except display them.ããYup. And that's only the *current* library's short name, not all of yourãlibrary short names.ãã digital manããSnapple "Real Fact" #85:ãThe Mona Lisa has no eyebrows.ã---ã þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.netã
  • From Jas Hud@VERT to All on Sat Jul 4 06:03:30 2009
    Tegularius wrote:ã> I would like to write a command to select a file area by means of a mnemonicã> code (instead of by number after scrolling through perhaps several pages ofã> listings, as the default provides). ã> ã> The FILE_SET_AREA function works fine as long as the user knows the completeã> internal code of a file area and types it in. However, this ordinarilyã> consists of the internal code of the library + that of the area within theã> library. I don't want to require the user to type anything but the code ofã> the area, without the library prefix.ã> ã> So how can I get a hold of either the internal code (preferably) or at least ã> the short name of the currently selected library in a Baja program?ã> ã> "@LIB@" displays the library's short name but I haven't seen a way to doã> anything with @-codes except display them.ã> ã> ---ã> ? Synchronet ? The Bauding House - baudhous.synchro.netãããthey user doesnt have to know the internal code, that's for you to put ãinto your .srcãããsetStr "uploads"ãFILE_SET_AREAãfile_uploadã---ã þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.netã
  • From Tegularius@VERT/BAUDHOUS to Jas Hud on Sat Jul 4 11:11:55 2009
    Re: Re: Internal codes in Bajaã By: Jas Hud to All on Sat Jul 04 2009 06:03:30ãã > they user doesnt have to know the internal code, that's for you to putã > into your .srcããThat's what I'm saying. I plan on having more than 20 libraries! Eachãwill have its menu displayed to the user, with the brief codes for the areasã(sometimes numeric, sometimes alphabetic). Thus the user will know the areas' ãcodes. But I hope he won't need to know anything about the libraries' codes.ã The program will need to know that-- but alas, apparently can't.ããGuess I'll need to try javascript, as Digital Man suggests.ãã---ã þ Synchronet þ The Bauding House - baudhous.synchro.netã
  • From Tegularius@VERT/BAUDHOUS to Digital Man on Sat Jul 4 11:21:55 2009
    Re: Internal codes in Bajaã By: Digital Man to Tegularius on Fri Jul 03 2009 02:37:13ãã > I can't think of a way in Baja off-hand. My suggestion would be to useã > JavaScript instead where it is most certainly possible.ã > ã > > "@LIB@" displays the library's short name but I haven't seen a way to doã > > anything with @-codes except display them.ã > ãIf a file containing "@LIB@" were typed (in the CMD.EXE sense), but by SBBS raãther than by CMD, with output redirected to second file, then the second fileãshould contain the value of @LIB@ rather than the @-code itself, and a Bajaãscript could read it. Is that possible?ãã---ã þ Synchronet þ The Bauding House - baudhous.synchro.netã
  • From Jas Hud@VERT to All on Sat Jul 4 17:40:52 2009
    Tegularius wrote:ã> Re: Re: Internal codes in Bajaã> By: Jas Hud to All on Sat Jul 04 2009 06:03:30ã> ã> > they user doesnt have to know the internal code, that's for you to putã> > into your .srcã> ã> That's what I'm saying. I plan on having more than 20 libraries! Eachã> will have its menu displayed to the user, with the brief codes for the areasã> (sometimes numeric, sometimes alphabetic). Thus the user will know the areas' ã> codes. But I hope he won't need to know anything about the libraries' codes.ã> The program will need to know that-- but alas, apparently can't.ã> ã> Guess I'll need to try javascript, as Digital Man suggests.ã> ã> ---ã> ? Synchronet ? The Bauding House - baudhous.synchro.netãããi think i have a better idea. why dont you just keep the current ãlistings and then draw ansi files for each file sub? that way you could ãcontrol clutter and 'scrolling'ããcheck out the customization docs for more info.ããjust so you know i have a shitton of file areas, so i'm getting what you ãare saying here.ããi think making a script you are talking about would be a lot of work for ã something users probably wouldnt use much.ã---ã þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.netã
  • From Digital Man@VERT to Tegularius on Sat Jul 4 16:30:03 2009
    Re: Internal codes in Bajaã By: Tegularius to Digital Man on Sat Jul 04 2009 11:21 amãã > Re: Internal codes in Bajaã > By: Digital Man to Tegularius on Fri Jul 03 2009 02:37:13ã >ã > > I can't think of a way in Baja off-hand. My suggestion would be to useã > > JavaScript instead where it is most certainly possible.ã > >ã > > > "@LIB@" displays the library's short name but I haven't seen a way toã > > > do anything with @-codes except display them.ã > >ã > If a file containing "@LIB@" were typed (in the CMD.EXE sense), but by SBBSã > ra ther than by CMD, with output redirected to second file, then the secondã > file should contain the value of @LIB@ rather than the @-code itself, and aã > Baja script could read it. Is that possible?ããNo. For Baja, the @-codes are expanded during display to the remote user only.ãã digital manããSnapple "Real Fact" #53:ãThe average women consumes 6lbs of lipstick in her lifetime.ã---ã þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.netã
  • From Tegularius@VERT/BAUDHOUS to Digital Man on Sun Jul 5 18:59:31 2009
    Re: Internal codes in Bajaã By: Digital Man to Tegularius on Fri Jul 03 2009 02:37:13ãã > I can't think of a way in Baja off-hand. My suggestion would be to useã > JavaScript instead where it is most certainly possible.ããCan a JavaScript be called from a Baja program? If so, that would be ãnice to try. If not, then the entire shell might need to be written in JS.ãI'm totally new to this language. It looks exciting and would probablyãbe rewarding to work with, but Lord, talk about a steep learning curve...ããI'm going to try a kludge first. Will let you know whether it works.ãã---ã þ Synchronet þ The Bauding House - baudhous.synchro.netã
  • From Digital Man@VERT to Tegularius on Mon Jul 6 12:08:56 2009
    Re: Internal codes in Bajaã By: Tegularius to Digital Man on Sun Jul 05 2009 06:59 pmãã > Re: Internal codes in Bajaã > By: Digital Man to Tegularius on Fri Jul 03 2009 02:37:13ã >ã > > I can't think of a way in Baja off-hand. My suggestion would be to useã > > JavaScript instead where it is most certainly possible.ã >ã > Can a JavaScript be called from a Baja program?ããYes, using the EXEC_BIN function or EXEC "?module".ãã digital manããSnapple "Real Fact" #116:ãThe largest fish is the whale shark - it can be over 50 feet long and weigh 2 tons. ã---ã þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.netã
  • From Tegularius@VERT/BAUDHOUS to Jas Hud on Mon Jul 6 01:38:09 2009
    Re: Re: Internal codes in Bajaã By: Jas Hud to All on Sat Jul 04 2009 17:40:52ãã > ã > i think i have a better idea. why dont you just keep the currentã > listings and then draw ansi files for each file sub? that way you couldã > control clutter and 'scrolling'ã > ãI'm planning on it. The only drawback is that the file area must stillãbe selected by number, right? What I would like to do is allow the userã(in some cases) to choose the area using a mnemonic letter or string ofãseveral letters, which are highlighted in each menu.ããBy the way, the kludge I mentioned wanting to try works! Sometimes it isãslow, because it involves executing an external program. ããAlso by the way, I was considering the possibility of alternate file paths,ãif only because the docs say somewhere that each file area defined takesãup RAM. Do you know how much RAM, or at what point this might begin toãbe a problem? Vertrauen must have well over a hundred. I recall fromãthree years ago (before my disk crash) I was offering the contents ofãat least a dozen CDs, each as a library, and most of them had at leastãthirty areas. I don't recall that performance suffered. The trouble withãalternate paths is that adding more than about eighteen in scfg is a realãpain because the window keeps bouncing back to the eighteenth. Perhaps thisãis a bug easily fixed?ããã---ã þ Synchronet þ The Bauding House - baudhous.synchro.netã
  • From Digital Man@VERT to Tegularius on Mon Jul 6 16:39:34 2009
    Re: Re: Internal codes in Bajaã By: Tegularius to Jas Hud on Mon Jul 06 2009 01:38 amãã > Re: Re: Internal codes in Bajaã > By: Jas Hud to All on Sat Jul 04 2009 17:40:52ã >ã > >ã > > i think i have a better idea. why dont you just keep the currentã > > listings and then draw ansi files for each file sub? that way you couldã > > control clutter and 'scrolling'ã > >ã > I'm planning on it. The only drawback is that the file area must stillã > be selected by number, right? What I would like to do is allow the userã > (in some cases) to choose the area using a mnemonic letter or string ofã > several letters, which are highlighted in each menu.ã >ã > By the way, the kludge I mentioned wanting to try works! Sometimes it isã > slow, because it involves executing an external program.ã >ã > Also by the way, I was considering the possibility of alternate file paths,ã > if only because the docs say somewhere that each file area defined takesã > up RAM. Do you know how much RAM, or at what point this might begin toã > be a problem? Vertrauen must have well over a hundred. I recall fromã > three years ago (before my disk crash) I was offering the contents ofã > at least a dozen CDs, each as a library, and most of them had at leastã > thirty areas. I don't recall that performance suffered. The trouble withã > alternate paths is that adding more than about eighteen in scfg is a realã > pain because the window keeps bouncing back to the eighteenth. Perhapsã > this is a bug easily fixed?ããIn 32-bit versions of Synchronet, the memory usage, in general, is not aãconcern. Alternate file paths were created to serve an organizational purposeã(not to save memory). I'll look into the SCFG problem you mentioned.ãã digital manããSnapple "Real Fact" #14:ãCamel's milk does not curdle.ã---ã þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.netã
  • From Jas Hud@VERT to All on Wed Jul 8 19:55:22 2009
    Tegularius wrote:ã> Re: Re: Internal codes in Bajaã> By: Jas Hud to All on Sat Jul 04 2009 17:40:52ãã> Also by the way, I was considering the possibility of alternate file paths,ã> if only because the docs say somewhere that each file area defined takesã> up RAM. Do you know how much RAM, or at what point this might begin toã> be a problem? Vertrauen must have well over a hundred. I recall fromã> three years ago (before my disk crash) I was offering the contents ofã> at least a dozen CDs, each as a library, and most of them had at leastã> thirty areas. I don't recall that performance suffered. The trouble withã> alternate paths is that adding more than about eighteen in scfg is a realã> pain because the window keeps bouncing back to the eighteenth. Perhaps thisã> is a bug easily fixed?ã> ã> ---ãããi dont think you really need to use exteral file paths in this day and age.ããi probably have more files on the bbs than 90% of the people out there ãand i've never had a problem regarding memory or performance.ã---ã þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.netã
  • From Black Nigger@VERT/DELUSION to Jas Hud on Sat Jul 11 00:02:00 2009
    Re: file areas // Re: Internaã By: Jas Hud to All on Wed Jul 08 2009 08:55 pmãã > i probably have more files on the bbs than 90% of the people out thereã > and i've never had a problem regarding memory or performance.ããbut you have a problem craving cockãã---ã þ Synchronet þ Delusions of Grandeur - delusions.bounceme.netã