• exec/xtrn_sec.js

    From rswindell@VERT to CVS commit on Wednesday, April 01, 2015 23:51:32
    exec xtrn_sec.js 1.13 1.14
    Update of /cvsroot/sbbs/exec
    In directory cvs:/tmp/cvs-serv4990

    Modified Files:
    xtrn_sec.js
    Log Message:
    Implemented feature idea from sysop Skatin:
    You can now pass the internal code of an external program section to this module and it'll only display the external program menu for that section
    (e.g. "exec_bin xtrn-sec games").
    Also: cleaned-up the code a bit, moved some global variables into local scope and eliminated an errant debug log entry. Hopefully I didn't break anything.


    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ telnet://vert.synchro.net
  • From Rastus@VERT/EWBBS to rswindell on Sunday, April 05, 2015 06:49:59
    rswindell wrote:

    exec xtrn_sec.js 1.13 1.14
    Update of /cvsroot/sbbs/exec
    In directory cvs:/tmp/cvs-serv4990

    Modified Files:
    xtrn_sec.js
    Log Message:
    Implemented feature idea from sysop Skatin:
    You can now pass the internal code of an external program section to this module and it'll only display the external program menu for that section (e.g. "exec_bin xtrn-sec games").
    Also: cleaned-up the code a bit, moved some global variables into local
    scope and eliminated an errant debug log entry. Hopefully I didn't break anything.

    I am not certain this upgrade broke my system, but ever since I applied it I have had to restart my board after midnight or else at least one of my timed external events does not execute.

    The event I am referencing is scheduled to run 12 times a day.. but other events that are set to execute a specific time seem to be working. I don't know what else would have stopped this from working since I have made no
    other changes.

    --
    Nicholas Loch | SysOp: Electronic Warfare BBS
    Play Barren Realms Elite, Falcon's Eye, & More!
    http://www.ewbbs.net | telnet://bbs.ewbbs.net

    ---
    þ Synchronet þ Electronic Warfare BBS | telnet://ewbbs.synchro.net
  • From Rastus@VERT/EWBBS to Rastus on Sunday, April 05, 2015 07:27:28
    I will check my logs again tomorrow.. if this condition persists I'll revert to the previous version, rebuild, check and report my findings..

    --
    Nicholas Loch | SysOp: Electronic Warfare BBS
    Play Barren Realms Elite, Falcon's Eye, & More!
    http://www.ewbbs.net | telnet://bbs.ewbbs.net

    ---
    þ Synchronet þ Electronic Warfare BBS | telnet://ewbbs.synchro.net
  • From Mro@VERT/BBSESINF to Rastus on Sunday, April 05, 2015 12:48:47
    Re: Re: exec/xtrn_sec.js
    By: Rastus to rswindell on Sun Apr 05 2015 06:49 am

    I am not certain this upgrade broke my system, but ever since I applied it
    I have had to restart my board after midnight or else at least one of my timed external events does not execute.

    The event I am referencing is scheduled to run 12 times a day.. but other events that are set to execute a specific time seem to be working. I don't know what else would have stopped this from working since I have made no other changes.


    you might just want to use an external cron to run your events.
    years ago i had issues with my timed events not launching for various reasons and i went this route and it's been great since.
    ---
    þ Synchronet þ ::: BBSES.info - free BBS services :::
  • From Accession@VERT/PHARCYDE to Mro on Monday, April 06, 2015 17:24:52
    Hello Mro,

    On 05 Apr 15 12:48, Mro wrote to Rastus:

    you might just want to use an external cron to run your events.
    years ago i had issues with my timed events not launching for various reasons and i went this route and it's been great since.

    While that's great news for you and all, if there is a possible issue in the timed events, you did absolutely *nothing* to help fix it. Using an external cron only helps you, not Synchronet.

    Regards,
    Nick

    --- GoldED+/LNX 1.1.5-b20130910
    * Origin: thePharcyde_ telnet://bbs.pharcyde.org (Wisconsin) (723:1/701)
    þ Synchronet þ thePharcyde_ telnet://bbs.pharcyde.org (Wisconsin)
  • From Rastus@VERT/EWBBS to Rastus on Tuesday, April 07, 2015 00:35:57
    It turns out that there was no problem with xtrn_sec.js or any other Sync file. A dos file had become corrupt and was causing an instance of a batch file to hang.. that stopped everything else from running since the event wasn't ending.

    Sorry for any confusion..

    ---
    þ Synchronet þ Electronic Warfare BBS | telnet://ewbbs.synchro.net
  • From rswindell@VERT to CVS commit on Saturday, January 02, 2016 14:06:42
    exec xtrn_sec.js 1.15 1.16
    Update of /cvsroot/sbbs/exec
    In directory cvs:/tmp/cvs-serv9530

    Modified Files:
    xtrn_sec.js
    Log Message:
    The program listing will now terminate (before the end of the list) if/when the console-abort flag is set. This is/was the behavior of the built-in xtrn_sec function and failed to make it into this script. This allows a long, multipage, program listing to be aborted with 'N' or 'Q' or Ctrl-C. Thanks to Nightfox for reporting this difference in behavior even though he was actually wanting the console-abort flag to be ignored for a separate reason. :-)


    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ telnet://vert.synchro.net
  • From rswindell@VERT to CVS commit on Monday, November 27, 2017 12:11:24
    exec xtrn_sec.js 1.16 1.17
    Update of /cvsroot/sbbs/exec
    In directory cvs:/tmp/cvs-serv25884

    Modified Files:
    xtrn_sec.js
    Log Message:
    Added the "autoexec" option, if set to true in the ctrl/modopts.ini file, selecting an external program "section" will auto-execute the one available program if there is only one program available to the current user. For
    C.G. Learn, AKA: DesotoFireflite



    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From KenDB3@VERT/KD3NET to rswindell on Monday, November 27, 2017 18:28:44
    exec xtrn_sec.js 1.16 1.17
    Update of /cvsroot/sbbs/exec
    In directory cvs:/tmp/cvs-serv25884

    Modified Files:
    xtrn_sec.js
    Log Message:
    Added the "autoexec" option, if set to true in the ctrl/modopts.ini file, selecting an external program "section" will auto-execute the one available program if there is only one program available to the current user. For
    C.G. Learn, AKA: DesotoFireflite

    That is pretty useful. Good request C.G.!
    (I also read your disclaimer DM, about a limited user autoexecuting the one door without ANSI or various other requirements, duly noted)

    ~KenDB3

    ---
    þ Synchronet þ KD3net-Rhode Island's only BBS about nothing. http://bbs.kd3.us
  • From rswindell@VERT to CVS commit on Friday, February 02, 2018 04:59:55
    exec xtrn_sec.js 1.17 1.18
    Update of /cvsroot/sbbs/exec
    In directory cvs:/tmp/cvs-serv19759

    Modified Files:
    xtrn_sec.js
    Log Message:
    Added font loading/activation support (per xtrn and then re-apply the
    default). See ctrl/fonts.ini for more details.



    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From rswindell@VERT to CVS commit on Tuesday, August 14, 2018 20:03:21
    exec xtrn_sec.js 1.18 1.19
    Update of /cvsroot/sbbs/exec
    In directory cvs:/tmp/cvs-serv2475

    Modified Files:
    xtrn_sec.js
    Log Message:
    Fix problem reported by Nelgin:
    In External programs after running Sycnrhonet BBS List you get
    "Returning to <BBS> - hit a key". If you presss Q you get a blank external
    menu menu rather than the full menu.
    The main problem was the line counter, so clearing after returning from executing an external program (unless the forced pause thing is on).



    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From rswindell@VERT to CVS commit on Sunday, October 21, 2018 23:19:19
    exec xtrn_sec.js 1.19 1.20
    Update of /cvsroot/sbbs/exec
    In directory cvs:/tmp/cvs-serv10972

    Modified Files:
    xtrn_sec.js
    Log Message:
    Fixes for 40-column terminals.
    Using new bbs.menu_exists() method.


    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From rswindell@VERT to CVS commit on Monday, January 07, 2019 13:48:02
    exec xtrn_sec.js 1.20 1.21
    Update of /cvsroot/sbbs/exec
    In directory cvs:/tmp/cvs-serv17092

    Modified Files:
    xtrn_sec.js
    Log Message:
    For DaiTengu:
    Added support for optional modopts.ini [xtrn_sec] keys:
    - eval_before_exec
    - eval_after_exec
    These may be set to JavaScript expressions to be evaluated (executed)
    before and/or after any program is executed from this module.
    Also fixed a bug where a door-custom font may not be loaded if the door
    was the only one available in a section.



    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From rswindell@VERT to CVS commit on Saturday, March 14, 2020 01:28:56
    exec xtrn_sec.js 1.21 1.22
    Update of /cvsroot/sbbs/exec
    In directory cvs:/tmp/cvs-serv24290

    Modified Files:
    xtrn_sec.js
    Log Message:
    Forced-reset the console attributes when returning from a door.



    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From rswindell@VERT to CVS commit on Sunday, March 22, 2020 02:45:25
    exec xtrn_sec.js 1.22 1.23
    Update of /cvsroot/sbbs/exec
    In directory cvs:/tmp/cvs-serv3690

    Modified Files:
    xtrn_sec.js
    Log Message:
    This change allow with an upcoming change to text.dat allows > 25 chars
    of external program names to be displayed:
    32 chars in multicolumn mode
    40 chars in singlecolumn mode

    New modopts.ini [xtrn_sec] keys:
    - multicolumn_separator (default: " ")
    - singlecolumn_margin (default: 7)
    - singlecolumn_height (default: screen rows - singlecolumn_margin)
    - singlecolumn_lstfmt (default: "\x01h\x01c%3u \xb3 \x01n\x01c%s\x01h ")




    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From rswindell@VERT to CVS commit on Wednesday, April 22, 2020 16:01:18
    exec xtrn_sec.js 1.23 1.24
    Update of /cvsroot/sbbs/exec
    In directory cvs:/tmp/cvs-serv19256

    Modified Files:
    xtrn_sec.js
    Log Message:
    For Nelgin: if text/menu/xtrn#_head.* exists, display it before the auto-generated program list for that section # or the custom menu for that section.


    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From rswindell@VERT to CVS commit on Wednesday, April 22, 2020 18:33:31
    exec xtrn_sec.js 1.24 1.25
    Update of /cvsroot/sbbs/exec
    In directory cvs:/tmp/cvs-serv7529

    Modified Files:
    xtrn_sec.js
    Log Message:
    Allow all the displayed strings to be over-ridden with modopts.ini [xtrn_sec] key values (the defaults of which mostly come from text.dat).


    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From rswindell@VERT to CVS commit on Wednesday, April 22, 2020 18:58:48
    exec xtrn_sec.js 1.25 1.26
    Update of /cvsroot/sbbs/exec
    In directory cvs:/tmp/cvs-serv10788

    Modified Files:
    xtrn_sec.js
    Log Message:
    Clear the screen from here (rather than depending on menu/header files or text.dat strings to do it) by default. Set "clear_screen = false" in
    [xtrn_sec] of modopts.ini to disable.


    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From rswindell@VERT to CVS commit on Saturday, May 09, 2020 03:05:15
    exec xtrn_sec.js 1.27 1.28
    Update of /cvsroot/sbbs/exec
    In directory cvs:/tmp/cvs-serv18348

    Modified Files:
    xtrn_sec.js
    Log Message:
    Add hotspots to 2nd column, when multicolumn.



    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From rswindell@VERT to CVS commit on Saturday, May 09, 2020 03:11:23
    exec xtrn_sec.js 1.28 1.29
    Update of /cvsroot/sbbs/exec
    In directory cvs:/tmp/cvs-serv19425

    Modified Files:
    xtrn_sec.js
    Log Message:
    Define "use strict" - insure no \001's sneak into this file.



    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell@VERT to Git commit to sbbs/master on Sunday, September 13, 2020 22:58:30
    https://gitlab.synchro.net/sbbs/sbbs/-/commit/45afbcddaede90ca17cafd10
    Modified Files:
    exec/xtrn_sec.js
    Log Message:
    Reset to attributes to normal (lightgray, black bg) before executing xtrns

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell@VERT to Git commit to sbbs/master on Tuesday, November 03, 2020 12:44:51
    https://gitlab.synchro.net/sbbs/sbbs/-/commit/8dfb469c0581ef03ec736dae
    Modified Files:
    exec/xtrn_sec.js
    Log Message:
    Support text/menu/xtrn<sec-code>.* and text/menu/xtrn<sec-code>_head.* files

    Using the xtrn program section internal code protects against renumbering upon configuration changes (inserting/removing program sections).
    At Nelgin's suggestion/request.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell@VERT to Git commit to Main/master on Tuesday, November 24, 2020 15:37:04
    https://gitlab.synchro.net/main/sbbs/-/commit/dc70b7de09629773a2303acd
    Modified Files:
    exec/xtrn_sec.js
    Log Message:
    Refactor commit b63b3bb3a85 (customizable xtrn program section menu)

    Use the text.dat strings that corresponded with the previous behavior
    (used by console.uselect()). The defaults include new-lines, so removed
    some hard-coded console.crlf() calls that were added. If you have a
    custom section_header_fmt, you'll likely need to add a \r\n to it.

    Allow the "External Program Section" title string to be customized
    (separately from section_header_fmt, e.g. for localization).

    Save/use the current section.

    Mouse-enable the program section list.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Nigel Reed@VERT to Git commit to main/sbbs/master on Monday, November 30, 2020 18:18:25
    https://gitlab.synchro.net/main/sbbs/-/commit/15c4611531def3af43843599
    Modified Files:
    exec/xtrn_sec.js
    Log Message:
    Add similar functionality to the xtrn<secnum>_head file but will
    display the file after the list of external programs.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell@VERT to Git commit to main/sbbs/master on Monday, November 30, 2020 18:18:25
    https://gitlab.synchro.net/main/sbbs/-/commit/0d0863d2a79c3803146b4173
    Modified Files:
    exec/xtrn_sec.js
    Log Message:
    Merge branch 'nelgin/xtrn_tail' into 'master'

    Nelgin/xtrn tail

    See merge request main/sbbs!48

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell@VERT to Git commit to main/sbbs/master on Monday, November 30, 2020 18:37:03
    https://gitlab.synchro.net/main/sbbs/-/commit/b4fbc321e479305a3afe809b
    Modified Files:
    exec/xtrn_sec.js
    Log Message:
    Support text/menu/xtrn*_tail even when xtrn<secnum|name> menu exists.

    Previously, the xtrn*_tail menu was only displayed in the programmatic menu mode.

    Also, using the P_NOERROR mode flag for bbs.menu() to simplify all the if/else logic.

    And use require() instead of load().

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Michael Long@VERT to Git commit to main/sbbs/master on Monday, November 30, 2020 20:19:24
    https://gitlab.synchro.net/main/sbbs/-/commit/bab4a66824b99bb9f940d6d7
    Modified Files:
    exec/xtrn_sec.js
    Log Message:
    add global head and tail for both section menu and external program menu
    use options.clear_screen for clear instead of hardcoded value in SelectItemHdr remove redundant code for input in main section menu

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell@VERT to Git commit to main/sbbs/master on Monday, November 30, 2020 20:19:24
    https://gitlab.synchro.net/main/sbbs/-/commit/d995e889e9ad303dc1a01bde
    Modified Files:
    exec/xtrn_sec.js
    Log Message:
    Merge branch 'mlong/xtrnheadtail' into 'master'

    add global head and tail for both section menu and external program menu

    See merge request main/sbbs!49

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell@VERT to Git commit to main/sbbs/master on Sunday, December 06, 2020 14:30:20
    https://gitlab.synchro.net/main/sbbs/-/commit/3470d723eb6163b64fed0734
    Modified Files:
    exec/xtrn_sec.js
    Log Message:
    "center" feature/option added and text.dat section header suppression

    Add support for modopts.ini "center=true" option to center single-column program listing in the terminal.

    When a custom section header files (xtrn<sec>_head.*) is displayed, don't
    print the XtrnProgLstHdr string from the text.dat.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell@VERT to Git commit to main/sbbs/master on Sunday, December 06, 2020 15:56:46
    https://gitlab.synchro.net/main/sbbs/-/commit/400c5e0b0f452096aeeeae55
    Modified Files:
    exec/xtrn_sec.js
    Log Message:
    Give the section selection menu the same center & header suppression treatment

    Don't display the text.dat SelectItemHdr if an xtrn_sec_head.* file was shown. Center the sections and the "Which" prompt when the "center=true" modopts.ini option is set.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Michael Long@VERT to Git commit to main/sbbs/master on Friday, January 01, 2021 18:21:34
    https://gitlab.synchro.net/main/sbbs/-/commit/62c559efa674be5d6e2fdcd1
    Modified Files:
    exec/xtrn_sec.js
    Log Message:
    If you aren't using a custom xtrn menu head per section, then you might fall back on a global one...but the prior logic would not display the actual section heading if it used a global (xtrn_head) file. If you are using xtrn_head, you don't have anything in there with a section name, so display the section name from code again

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell@VERT to Git commit to main/sbbs/master on Friday, January 01, 2021 18:21:34
    https://gitlab.synchro.net/main/sbbs/-/commit/b71a818491f7a3b500d89491
    Modified Files:
    exec/xtrn_sec.js
    Log Message:
    Merge branch 'xtrnhead' into 'master'

    If using xtrn_head, display section name/header as well

    See merge request main/sbbs!67

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell@VERT to Git commit to main/sbbs/master on Friday, January 01, 2021 20:10:28
    https://gitlab.synchro.net/main/sbbs/-/commit/b3b4d332acd1b61cdbbd6d8d
    Modified Files:
    exec/xtrn_sec.js
    Log Message:
    Please test before you commit and a submit merge request.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell@VERT to Git commit to main/sbbs/master on Wednesday, January 26, 2022 20:22:19
    https://gitlab.synchro.net/main/sbbs/-/commit/0deb94c785d2f6223a00e258
    Modified Files:
    exec/xtrn_sec.js
    Log Message:
    Fix default program section selection

    Hitting [Enter] is supposed to select the current/default program
    section. Instead, it was quitting. This was apparently broken as
    part of the xtrn_sec.js refactor a year or so ago by/with mlong.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell@VERT to Git commit to main/sbbs/master on Sunday, July 03, 2022 16:04:04
    https://gitlab.synchro.net/main/sbbs/-/commit/0021b378b3edf3ebd36df174
    Modified Files:
    exec/xtrn_sec.js
    Log Message:
    Add a carriage-return to the mouse hotspot value when needed

    For program listings, if the program number is fewer digits than the total program list count (number of digits), then a carriage return is required
    to launch that program. Automate this for the mouse hotspot value, so clicking Program #1 in a list of 10+ will just run that program and not require the
    user to hit the Enter key.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell@VERT to Git commit to main/sbbs/master on Saturday, July 16, 2022 17:43:28
    https://gitlab.synchro.net/main/sbbs/-/commit/8651f2afd696e49a0eb783eb
    Modified Files:
    exec/xtrn_sec.js
    Log Message:
    Don't treat Enter as choosing default section when no prompt was shown

    As pointed out via DOVE-Net by DesotoFireflite (VALHALLA):
    When xtrn_sec.* display file/menu is used, there's no auto-generated
    prompt (with a default section number indicated). So hitting Enter
    in this case and having the previous/default program section selected
    would be surprising behavior to a user. So, only support a default
    section selection when there was no xtrn_sec.* menu/display file.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell (on Debian Linux)@VERT to Git commit to main/sbbs/master on Saturday, March 02, 2024 18:40:01
    https://gitlab.synchro.net/main/sbbs/-/commit/ec6e617029885b4e1ebd7a0e
    Modified Files:
    exec/xtrn_sec.js
    Log Message:
    Don't try to center on terminals < 80 columns wide

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net