• default.src

    From Ayex@1:103/705 to All on Thu Dec 1 11:03:28 2016
    Quick question,

    I am adding new functions to a menu. Where do I add that menu letter (ie "1") at the top of default.src so that it knows its a valid choice?

    I know how to add the command arguments, etc.

    Thanks,

    -Ayex

    ---
    * Synchronet * -=-The ByteXchange BBS | bbs.thebytexchange.com:8888 --=-
    * Origin: Vertrauen - vert.synchro.net (1:103/705)
  • From Digital Man@1:103/705 to Ayex on Thu Dec 1 12:04:06 2016
    Re: default.src
    By: Ayex to All on Thu Dec 01 2016 11:03 am

    Quick question,

    I am adding new functions to a menu. Where do I add that menu letter (ie "1") at the top of default.src so that it knows its a valid choice?

    I know how to add the command arguments, etc.

    "1" would be a bad choice for a new command key in the default command shell, as numbers are used to change the current message and file area ('1' takes you to sub-board #1 in the current msesage group).

    But to answer you question: anywhere you like, the order does not matter. Alphabetical is nice for finding a command later in the .src file, but it's not actually important. Just find the menu section you're interested in adding a command too, then add a new cmdkey block.

    digital man

    Synchronet "Real Fact" #35:
    The irc.synchro.net network has more servers than users.
    Norco, CA WX: 58.6oF, 52.0% humidity, 0 mph ESE wind, 0.00 inches rain/24hrs --- SBBSecho 3.00-Win32
    * Origin: Vertrauen - vert.synchro.net (1:103/705)
  • From Accession@1:103/705 to Ayex on Thu Dec 1 13:38:50 2016
    Hello Ayex,

    On 01 Dec 16 11:03, Ayex wrote to All:

    I am adding new functions to a menu. Where do I add that menu letter
    (ie "1") at the top of default.src so that it knows its a valid
    choice?

    You have to find where that specific menu is defined (ie: main, file, message, etc) in default.src, and add the "cmdkey 'X'" somewhere in the midst of where all the other options are.

    Regards,
    Nick

    ... "-Y-| -+-+-#-A. -> -+-|-|-U-i -e-+-+-i-|-+ -C-#-#-+-e-#-A."
    --- GoldED+/LNX 1.1.5-b20160827
    # Origin: thePharcyde_ distribution system (Wisconsin) (723:1/1)
    * Synchronet * thePharcyde_ telnet://bbs.pharcyde.org (Wisconsin)
    * Origin: Vertrauen - vert.synchro.net (1:103/705)
  • From Ayex@1:103/705 to Digital Man on Thu Dec 1 16:27:14 2016
    Re: default.src
    By: Digital Man to Ayex on Thu Dec 01 2016 12:04 pm

    But to answer you question: anywhere you like, the order does not matter. Alphabetical is nice for finding a command later in the .src file, but it's not actually important. Just find the menu section you're interested in adding a command too, then add a new cmdkey block.



    thanks, I thought that was all that was needed. I understand why 1 isnt a good choice. Thanks.

    -Ayex

    ---
    * Synchronet * -=-The ByteXchange BBS | bbs.thebytexchange.com:8888 --=-
    * Origin: Vertrauen - vert.synchro.net (1:103/705)
  • From Ayex@1:103/705 to Accession on Thu Dec 1 16:27:28 2016
    Re: default.src
    By: Accession to Ayex on Thu Dec 01 2016 01:38 pm

    Thanks!

    ---
    * Synchronet * -=-The ByteXchange BBS | bbs.thebytexchange.com:8888 --=-
    * Origin: Vertrauen - vert.synchro.net (1:103/705)