• classic_shell.js

    From Bill McGarrity@TEQUILAM to All on Saturday, February 08, 2014 11:47:00
    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 to Bill McGarrity on Saturday, February 08, 2014 15:57:08
    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
  • From MCMLXXIX@MDJ to Digital Man on Saturday, February 08, 2014 20:41:08
    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@SYNCNIX to Bill McGarrity on Saturday, February 08, 2014 18:00:10
    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@TEQUILAM to Deuce on Saturday, February 08, 2014 22:44:00
    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?

    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.

    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@TEQUILAM to Digital Man on Saturday, February 08, 2014 23:13:00
    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...

    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.

    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 to Bill McGarrity on Saturday, February 08, 2014 20:35:38
    Re: Re: classic_shell.js
    By: Bill McGarrity to Digital Man on Sat Feb 08 2014 11:13 pm

    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.

    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
  • From Bill McGarrity@TEQUILAM to Digital Man on Sunday, February 09, 2014 00:22:00
    Digital Man wrote to Bill McGarrity <=-


    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.

    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

    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