• classic_shell.js

    From Bill McGarrity@VERT/TEQUILAM to All on Sat Feb 8 11:47:00 2014
    Good day all...ããOriginally I msg'd Rob over this but he asked me to post it in the echo hereãfor others. Appreciate the answer as well....ããHiya Rob...ããI am just getting my feet wet with programing and I wanted to make a change inãthe e-mail section of classc_shell.js. My plan is to add another command to itãso it wil call a door that looks at an FTN nodelist. So say under the "N" Iãwanted to add a "L" for FTN Lookup... what would be involved?ããI appreciate the time you put into this and for any pointers you can give me.ããHere is the reply... for those who didn't know... including myself...ããã"classic_shell.js isn't normally used (default.src/bin is used instead)."ããThanks again Rob...ããããããBillããTelnet: tequilamockingbirdonline.netãIRC: irc.tequilamockingbirdonline.net Ports: 6661-6670 SSL: +6697ãRadio: radio.tequilamockingbirdonline.net:8010/liveããã... Motorcycles are everywhere... Look twice, save a life!!ã--- MultiMail/Win32 v0.50ã þ Synchronet þ TequilaMockingbird Online - TELNET: tequilamockingbirdonline.netã
  • From Digital Man@VERT to Bill McGarrity on Sat Feb 8 15:57:08 2014
    Re: classic_shell.jsã By: Bill McGarrity to All on Sat Feb 08 2014 11:47 amãã > Good day all...ã >ã > Originally I msg'd Rob over this but he asked me to post it in the echoã > here for others. Appreciate the answer as well....ã >ã > Hiya Rob...ã >ã > I am just getting my feet wet with programing and I wanted to make a changeã > in the e-mail section of classc_shell.js. My plan is to add another commandã > to it so it wil call a door that looks at an FTN nodelist. So say under theã > "N" I wanted to add a "L" for FTN Lookup... what would be involved?ã >ã > I appreciate the time you put into this and for any pointers you can giveã > me.ã >ã > Here is the reply... for those who didn't know... including myself...ã >ã >ã > "classic_shell.js isn't normally used (default.src/bin is used instead)."ã >ã > Thanks again Rob...ããNo problem. The "default" shell is actually exec/default.bin (written in Baja, ãthe source of which is default.src).ããYou can section with the label ":e-mail" in this file.ããYou can add a "cmdkey L" command block (end with "end_cmd") or add it into the ã"cmdkey N" block if you prefer.ããTo execute a configured door (SCFG->External Programs->Online Programs), use ãã EXEC_XTRN "intcode"ããwhere "intcode" is the internal code of the program you have configured in ãSCFG. For detalis, see http://synchro.net/docs/baja.htmlããIf you prefer to work in JavaScript, you could use classic_shell.js or another ãshell written in JS, but how to modify the menu and launch an external is ãslightly different.ãã digital manããSynchronet "Real Fact" #29:ãThe COM I/O routines for Synchronet for DOS were written in ASM by Steve Deppe.ãNorco, CA WX: 63.7øF, 53.0% humidity, 9 mph ESE wind, 0.00 inches rain/24hrsã---ã þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.netã
  • From MCMLXXIX@VERT/MDJ to Digital Man on Sat Feb 8 20:41:08 2014
    Re: classic_shell.jsã By: Digital Man to Bill McGarrity on Sat Feb 08 2014 15:57:08ãã > If you prefer to work in JavaScript, you could use classic_shell.js or anothã > shell written in JS, but how to modify the menu and launch an external isã > slightly different.ããonly slightlyãã---ã þ Synchronet þ The BRoKEN BuBBLE (bbs.thebrokenbubble.com)ã
  • From Deuce@VERT/SYNCNIX to Bill McGarrity on Sat Feb 8 18:00:10 2014
    Re: classic_shell.jsã By: Bill McGarrity to All on Sat Feb 08 2014 11:47 amãã > I am just getting my feet wet with programing and I wanted to make a changeã > in the e-mail section of classc_shell.js. My plan is to add another commandã > to it so it wil call a door that looks at an FTN nodelist. So say under theã > "N" I wanted to add a "L" for FTN Lookup... what would be involved?ããSo, at about line 291 or so you would add something like this:ããcase 'L':ã bbs.exec_xtrn('CODE');ã continue main;ãã(Assuming that "CODE" is the internal code of the door).ãThen you would need to modify the menu ASC file. In text/menu, there's a
    main.asc file. I think PabloDraw supports editing ASC files directly, so fire up PB and load main.asc and fix up the menu to include the new 'L' command.ãã---ãhttp://DuckDuckGo.com/ a better search engine that respects your privacy.ã þ Synchronet þ My Brand-New BBS (All the cool SysOps run STOCK!)ã
  • From Bill McGarrity@VERT/TEQUILAM to Deuce on Sat Feb 8 22:44:00 2014
    Deuce wrote to Bill McGarrity <=-ããã > I am just getting my feet wet with programing and I wanted to make a changeã > in the e-mail section of classc_shell.js. My plan is to add another commandã > to it so it wil call a door that looks at an FTN nodelist. So say under theã > "N" I wanted to add a "L" for FTN Lookup... what would be involved?ãã De> So, at about line 291 or so you would add something like this:ãã De> case 'L':ã De> bbs.exec_xtrn('CODE');ã De> continue main;ãã De> (Assuming that "CODE" is the internal code of the door).ã De> Then you would need to modify the menu ASC file. In text/menu, there'sã De> a main.asc file. I think PabloDraw supports editing ASC filesã De> directly, so fire up PB and load main.asc and fix up the menu toã De> include the new 'L' command.ããThank you Deuce... y'all are just super at giving help.. :) So if I understandãthe info above is for the .js file. DM just gave me the info forãdefault.scr/bin, which is baja. I'l try both ways... :)ãããããBillããTelnet: tequilamockingbirdonline.netãIRC: irc.tequilamockingbirdonline.net Ports: 6661-6670 SSL: +6697ãRadio: radio.tequilamockingbirdonline.net:8010/liveããã... Motorcycles are everywhere... Look twice, save a life!!ã--- MultiMail/Win32 v0.50ã þ Synchronet þ TequilaMockingbird Online - TELNET: tequilamockingbirdonline.netã
  • From Bill McGarrity@VERT/TEQUILAM to Digital Man on Sat Feb 8 23:13:00 2014
    Digital Man wrote to Bill McGarrity <=-ããã > Good day all...ã >ã > Originally I msg'd Rob over this but he asked me to post it in the echoã > here for others. Appreciate the answer as well....ã >ã > Hiya Rob...ã >ã > I am just getting my feet wet with programing and I wanted to make a changeã > in the e-mail section of classc_shell.js. My plan is to add another commandã > to it so it wil call a door that looks at an FTN nodelist. So say under theã > "N" I wanted to add a "L" for FTN Lookup... what would be involved?ã >ã > I appreciate the time you put into this and for any pointers you can giveã > me.ã >ã > Here is the reply... for those who didn't know... including myself...ã >ã >ã > "classic_shell.js isn't normally used (default.src/bin is used instead)."ã >ã > Thanks again Rob...ãã DM> No problem. The "default" shell is actually exec/default.bin (writtenã DM> in Baja, the source of which is default.src).ãã DM> You can section with the label ":e-mail" in this file.ãã DM> You can add a "cmdkey L" command block (end with "end_cmd") or add itã DM> into the "cmdkey N" block if you prefer.ãã DM> To execute a configured door (SCFG->External Programs->Onlineã DM> Programs), useãã DM> EXEC_XTRN "intcode"ãã DM> where "intcode" is the internal code of the program you have configuredã DM> in SCFG. For detalis, see http://synchro.net/docs/baja.htmlãã DM> If you prefer to work in JavaScript, you could use classic_shell.js orã DM> another shell written in JS, but how to modify the menu and launch anã DM> external is slightly different.ããJust what I was looking for. the EXEC_XTRN was something I was looking for andãnow it all makes sense. Thanks again...ããJust so I understand, this should be the way I'll do it...ããcmdkey Lã exec_xtrn "FNLSCAN"ã end_cmdããFrom what I read in the CommandKeyConstants, should there be any args:??ããALso, in compiling, I'd just do: baja default.scr Correct?? (naturally, Iãmake a backup of the original default.scr/bin files before I go nuts... :)ããã ***ãAddendum.... I made the changes you said and it works perfectly... that was tooãdamn easy.. lol!!ãããThanks again..ãããBillããTelnet: tequilamockingbirdonline.netãIRC: irc.tequilamockingbirdonline.net Ports: 6661-6670 SSL: +6697ãRadio: radio.tequilamockingbirdonline.net:8010/liveããã... Motorcycles are everywhere... Look twice, save a life!!ã--- MultiMail/Win32 v0.50ã þ Synchronet þ TequilaMockingbird Online - TELNET: tequilamockingbirdonline.netã
  • From Digital Man@VERT to Bill McGarrity on Sat Feb 8 20:35:38 2014
    Re: Re: classic_shell.jsã By: Bill McGarrity to Digital Man on Sat Feb 08 2014 11:13 pmãã > DM> To execute a configured door (SCFG->External Programs->Onlineã > DM> Programs), useã >ã > DM> EXEC_XTRN "intcode"ã >ã > DM> where "intcode" is the internal code of the program you haveã > DM> configured in SCFG. For detalis, see http://synchro.net/docs/baja.htmlã >ã > DM> If you prefer to work in JavaScript, you could use classic_shell.js orã > DM> another shell written in JS, but how to modify the menu and launch anã > DM> external is slightly different.ã >ã > Just what I was looking for. the EXEC_XTRN was something I was looking forã > and now it all makes sense. Thanks again...ã >ã > Just so I understand, this should be the way I'll do it...ã >ã > cmdkey Lã > exec_xtrn "FNLSCAN"ã > end_cmdã >ã > From what I read in the CommandKeyConstants, should there be any args:??ã >ã > ALso, in compiling, I'd just do: baja default.scr Correct?? (naturally, Iã > make a backup of the original default.scr/bin files before I go nuts... :)ã >ã >ã > ***ã > Addendum.... I made the changes you said and it works perfectly... that wasã > too damn easy.. lol!!ããCool. Modified .src and .js files should go in your "mods" directory though, soãyou won't lose your changes during any future upgrades:ãhttp://wiki.synchro.net/dir:modsãã digital manããSynchronet "Real Fact" #66:ãSEXYZ is as a 32-bit replacement for [F]DSZ, CE-XYZ and other protocol drivers.ãNorco, CA WX: 53.9øF, 86.0% humidity, 5 mph SE wind, 0.00 inches rain/24hrsã---ã þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.netã
  • From Bill McGarrity@VERT/TEQUILAM to Digital Man on Sun Feb 9 00:22:00 2014
    Digital Man wrote to Bill McGarrity <=-ãã >ã > DM> If you prefer to work in JavaScript, you could use classic_shell.js orã > DM> another shell written in JS, but how to modify the menu and launch anã > DM> external is slightly different.ã >ã > Just what I was looking for. the EXEC_XTRN was something I was looking forã > and now it all makes sense. Thanks again...ã >ã > Just so I understand, this should be the way I'll do it...ã >ã > cmdkey Lã > exec_xtrn "FNLSCAN"ã > end_cmdã >ã > From what I read in the CommandKeyConstants, should there be any args:??ã >ã > ALso, in compiling, I'd just do: baja default.scr Correct?? (naturally, Iã > make a backup of the original default.scr/bin files before I go nuts... :)ã >ã >ã > ***ã > Addendum.... I made the changes you said and it works perfectly... that wasã > too damn easy.. lol!!ãã DM> Cool. Modified .src and .js files should go in your "mods" directoryã DM> though, so you won't lose your changes during any future upgrades:ã DM> http://wiki.synchro.net/dir:modsããOK.. I didn't change the .js just the src and compiled. Sould the bin file goãinto mods as well being it was also changed? Hell, I'll do it anyway... can'tãhurt.. lolãããBillããTelnet: tequilamockingbirdonline.netãIRC: irc.tequilamockingbirdonline.net Ports: 6661-6670 SSL: +6697ãRadio: radio.tequilamockingbirdonline.net:8010/liveããã... Motorcycles are everywhere... Look twice, save a life!!ã--- MultiMail/Win32 v0.50ã þ Synchronet þ TequilaMockingbird Online - TELNET: tequilamockingbirdonline.netã