• Command Shell Modifications..

    From Al DeRosa@VERT to All on Thursday, July 29, 2021 09:43:21
    Is there a tutorial for morons on how to modify the Command shells? I live in the Wiki and I am just a bit confused. What I am trying to do is add a couple of commands to a couple of the menus. Want to add MRC to the Chat menu and a couple of File Servers I hook up with to the File Menu, I got the idea of modifying default.src then compiling it with Baja, but I am a little lost on how to execute the js files from the menu. Like I said a Tutorial for morons (me). Any help or info would be much appreciated...

    Al

    --- Mystic BBS v1.12 A46 2020/08/26 (Windows/32)
    * Origin: The Wrong Number Family Of BBS' - Wrong Number ][ (1:267/157)
    Synchronet Vertrauen Home of Synchronet [vert/cvs/bbs].synchro.net
  • From Digital Man@VERT to Al DeRosa on Thursday, July 29, 2021 11:30:08
    Re: Command Shell Modifications..
    By: Al DeRosa to All on Thu Jul 29 2021 09:43 am

    Is there a tutorial for morons on how to modify the Command shells?

    Most command shells are written in Baja, so this would be the reference manual for that Baja language and compiler:
    http://synchro.net/docs/baja.html

    I live
    in the Wiki and I am just a bit confused. What I am trying to do is add a couple of commands to a couple of the menus. Want to add MRC to the Chat menu

    The chat menu (section) is not a command shell, it's implemented as a loadable module, currently in JavaScript: exec/chat_sec.js
    For modifying JavaScript modules, see: https://wiki.synchro.net/custom:javascript

    and a couple of File Servers I hook up with to the File Menu, I got the
    idea of modifying default.src then compiling it with Baja, but I am a little lost on how to execute the js files from the menu. Like I said a Tutorial for morons (me). Any help or info would be much appreciated...

    To execute any JS file from a Baja, use the EXEC_BIN function. There are several examples of this in exec/default.src. In fact, this is how the chat module is execute:
    exec_bin chat_sec
    --
    digital man

    Sling Blade quote #6:
    Karl: he should've had a chance to grow up. He would had fun some time.
    Norco, CA WX: 86.4F, 35.0% humidity, 3 mph NNW wind, 0.00 inches rain/24hrs

    ---
    Synchronet Vertrauen Home of Synchronet [vert/cvs/bbs].synchro.net
  • From Al DeRosa@VERT to Digital Man on Thursday, July 29, 2021 16:21:40
    I won't quote everything, but thanks that was what I was looking for, thought it was the exec_bin command but wasn't sure... Gonna give it all a look tonight.. Thanks for ALL the help DM!!

    --- Mystic BBS v1.12 A46 2020/08/26 (Windows/32)
    * Origin: The Wrong Number Family Of BBS' - Wrong Number ][ (1:267/157)
    Synchronet Vertrauen Home of Synchronet [vert/cvs/bbs].synchro.net
  • From Bucko@VERT to Digital Man on Thursday, July 29, 2021 19:57:29
    Re: Command Shell Modifications..

    To execute any JS file from a Baja, use the EXEC_BIN function. There are several examples of this in exec/default.src. In fact, this is how the chat module is execute:
    exec_bin chat_sec

    As expected, worked like a charm.. Got it setup and working. This board is slowly taking shape.. :)

    Al
    --- SBBSecho 3.14-Win32
    * Origin: The Wrong Number Family Of BBS' - Wrong Number ]I[ (1:267/157.1)
    Synchronet Vertrauen Home of Synchronet [vert/cvs/bbs].synchro.net
  • From MRO@VERT/BBSESINF to Al DeRosa on Thursday, July 29, 2021 20:03:03
    Re: Re: Command Shell Modifications..
    By: Al DeRosa to Digital Man on Thu Jul 29 2021 04:21 pm

    I won't quote everything, but thanks that was what I was looking for, thought it was the exec_bin command but wasn't sure... Gonna give it all a look tonight.. Thanks for ALL the help DM!!


    you mean you wont quote ANYTHING.
    ---
    Synchronet ::: BBSES.info - free BBS services :::
  • From Al DeRosa@VERT to MRO on Friday, July 30, 2021 19:23:44
    On 29 Jul 2021, MRO said the following...


    you mean you wont quote ANYTHING.
    ---

    Very true.. I didn't quote anything.. ;)

    --- Mystic BBS v1.12 A46 2020/08/26 (Windows/32)
    * Origin: The Wrong Number Family Of BBS' - Wrong Number ][ (1:267/157)
    Synchronet Vertrauen Home of Synchronet [vert/cvs/bbs].synchro.net