• Running doors from anywhere?

    From Digital Man@1:103/705 to Divarin on Thu Nov 4 14:20:50 2021
    Re: Running doors from anywhere?
    By: Divarin to Nightfox on Thu Nov 04 2021 07:31 am

    Re: Running doors from anywhere?
    By: Nightfox to Divarin on Wed Nov 03 2021 09:13:03

    Yes, you'd need to modify your command shell to add an option to those menus If you're using the default command shell, it's written in Baja. Under the http://synchro.net/docs/baja.html

    Hmm. okay yeah I was looking at that.
    Here's a specific example of what I'm trying to do: I have a door I wrote which uses gopher to allow users to browse / read the text files from Jason Scott's TextFiles.com (using the gopher mirror)
    I'd like to have this door listed under the text files menu rather than the (X) external programs menu.
    In the default.src file I see the option to access the text file section:

    cmdkey G
    text_file_section
    end_cmd

    But I don't see a source file for the text file section itself.

    Just replace "text_file_section" with "exec_xtrn gopher" (replace "gopher" with the internal code of your configured external program you want to run). Then recompile the command shell .src (to .bin) using 'baja'.

    Unfortunately the wiki page "Customizing with Baja" doesn't exist I clicked the link and it game up with a "This topic does not exist yet" page.

    Is there a reference to "Customizing with Baja" in the wiki?
    --
    digital man

    Synchronet/BBS Terminology Definition #78:
    SyncTERM = The Synchronet Terminal Emulator/BBS-client program
    Norco, CA WX: 81.2�F, 38.0% humidity, 8 mph NNW wind, 0.00 inches rain/24hrs --- SBBSecho 3.14-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Divarin@1:103/705 to Digital Man on Fri Nov 5 06:05:29 2021
    Re: Running doors from anywhere?
    By: Digital Man to Divarin on Thu Nov 04 2021 14:20:50

    Just replace "text_file_section" with "exec_xtrn gopher" (replace "gopher" w

    Hmm okay that would work except that I have other text files in the text files section I want listed as well. basically I want the text files section to work as is now but also have an extra option for accessing the door.

    I'll take a look at the javascript file and see if I can do something in there.

    ---
    � Synchronet � Mutiny BBS - mutinybbs.com - telnet:2332 - ssh:2232
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Digital Man@1:103/705 to Divarin on Sat Nov 6 12:00:26 2021
    Re: Running doors from anywhere?
    By: Divarin to Digital Man on Fri Nov 05 2021 06:05 am

    Re: Running doors from anywhere?
    By: Digital Man to Divarin on Thu Nov 04 2021 14:20:50

    Just replace "text_file_section" with "exec_xtrn gopher" (replace "gopher" w

    Hmm okay that would work except that I have other text files in the text files section I want listed as well. basically I want the text files section to work as is now but also have an extra option for accessing the door.

    I'll take a look at the javascript file and see if I can do something in there.

    Yeah, the JavaScript file of interest would be exec/text_sec.js. You could add a bbs.exec_xtrn('gopher') call in there somewhere in response to a special key-press I suppose.
    --
    digital man

    Synchronet/BBS Terminology Definition #16:
    CR = Carriage Return (ASCII 13, Ctrl-M)
    Norco, CA WX: 62.8�F, 90.0% humidity, 2 mph W wind, 0.00 inches rain/24hrs
    --- SBBSecho 3.14-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)