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 ---
þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net