• Command Shell Modifications..

    From Al DeRosa@1:267/157 to All on Thu Jul 29 09:43:21 2021
    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)
  • From Digital Man@1:103/705 to Al DeRosa on Thu Jul 29 11:30:08 2021
    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.4øF, 35.0% humidity, 3 mph NNW wind, 0.00 inches rain/24hrs --- SBBSecho 3.14-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Al DeRosa@1:267/157 to Digital Man on Thu Jul 29 16:21:40 2021
    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)
  • From Bucko@1:267/157.1 to Digital Man on Thu Jul 29 19:57:29 2021
    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)
  • From MRO@1:103/705 to Al DeRosa on Thu Jul 29 20:03:03 2021
    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 :::
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Al DeRosa@1:267/157 to MRO on Fri Jul 30 19:23:44 2021
    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)