• Default.src

    From Uatu13@VERT/DARKSIDE to Digital Man on Sun Sep 24 01:43:48 2017
    Hi DM,

    I'm trying to use the Default.src file as a reference to build my own command shell and I have a couple of questions:

    # Get key (with / extended commands allowed)
    compare_user_misc UM_COLDKEYS
    if_false
    getkeye
    else
    getstrupr 60
    endif <---

    1. Is that endif a typo? Is it supposed to be end_if or does it matter?

    ------------

    # Do nothing for control keys and space
    cmdkey ^@
    cmd_cmd
    cmdkey ^M
    end_cmd
    cmdkey ^S
    end_cmd
    cmdkey " <---
    end_cmd

    2. Is that last cmdkey supposed to only be one double quote (') ?


    Thanks.

    -=U13=-

    ---
    þ Synchronet þ The DarkSide of the Moon - telnet://darkside.synchro.net
  • From MRO@VERT/BBSESINF to Uatu13 on Sun Sep 24 13:27:36 2017
    Re: Default.src
    By: Uatu13 to Digital Man on Sun Sep 24 2017 01:43 am

    Hi DM,

    I'm trying to use the Default.src file as a reference to build my own command shell and I have a couple of questions:

    # Get key (with / extended commands allowed)
    compare_user_misc UM_COLDKEYS
    if_false
    getkeye
    else
    getstrupr 60
    endif <---

    1. Is that endif a typo? Is it supposed to be end_if or does it matter?


    should probably be end_if but that works
    ---
    þ Synchronet þ ::: BBSES.info - free BBS services :::
  • From Uatu13@VERT/DARKSIDE to MRO on Sun Sep 24 16:27:40 2017
    Re: Default.src
    By: MRO to Uatu13 on Sun Sep 24 2017 13:27:36

    I'm trying to use the Default.src file as a reference to build my own
    command shell and I have a couple of questions:

    # Get key (with / extended commands allowed)
    compare_user_misc UM_COLDKEYS
    if_false
    getkeye
    else
    getstrupr 60
    endif <---

    1. Is that endif a typo? Is it supposed to be end_if or does it
    matter?

    should probably be end_if but that works

    Thanks Mro, that puts me one step closer to debuging my command shell.

    -=U13=-

    ---
    þ Synchronet þ The DarkSide of the Moon - telnet://darkside.synchro.net
  • From MRO@VERT/BBSESINF to Uatu13 on Sun Sep 24 22:05:30 2017
    Re: Default.src
    By: Uatu13 to MRO on Sun Sep 24 2017 04:27 pm

    Re: Default.src
    By: MRO to Uatu13 on Sun Sep 24 2017 13:27:36

    I'm trying to use the Default.src file as a reference to build my own
    command shell and I have a couple of questions:

    # Get key (with / extended commands allowed)
    compare_user_misc UM_COLDKEYS
    if_false
    getkeye
    else
    getstrupr 60
    endif <---

    1. Is that endif a typo? Is it supposed to be end_if or does it
    matter?

    should probably be end_if but that works

    Thanks Mro, that puts me one step closer to debuging my command shell.

    -=U13=-


    if i were you, i'd take the renegade command shell trim it down.
    ---
    þ Synchronet þ ::: BBSES.info - free BBS services :::
  • From Digital Man@VERT to Uatu13 on Mon Sep 25 15:44:46 2017
    Re: Default.src
    By: Uatu13 to Digital Man on Sun Sep 24 2017 01:43 am

    Hi DM,

    I'm trying to use the Default.src file as a reference to build my own command shell and I have a couple of questions:

    # Get key (with / extended commands allowed)
    compare_user_misc UM_COLDKEYS
    if_false
    getkeye
    else
    getstrupr 60
    endif <---

    1. Is that endif a typo? Is it supposed to be end_if or does it matter?

    "endif" and "end_if" are both valid and equal to the Baja compiler.

    ------------

    # Do nothing for control keys and space
    cmdkey ^@
    cmd_cmd
    cmdkey ^M
    end_cmd
    cmdkey ^S
    end_cmd
    cmdkey " <---
    end_cmd

    2. Is that last cmdkey supposed to only be one double quote (') ?

    No, it's correct. It just means a blank command key (a space character).

    digital man

    Synchronet "Real Fact" #56:
    Synchronet Terminal Server introduced SecureShell (SSH) support w/v3.14a (2006).
    Norco, CA WX: 88.2øF, 12.0% humidity, 0 mph SSE wind, 0.00 inches rain/24hrs

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Uatu13@VERT/DARKSIDE to Digital Man on Mon Sep 25 21:09:48 2017
    Re: Default.src
    By: Digital Man to Uatu13 on Mon Sep 25 2017 15:44:46

    cmdkey " <---
    end_cmd

    2. Is that last cmdkey supposed to only be one double quote (') ?

    No, it's correct. It just means a blank command key (a space character).

    digital man

    Thanks, my experience was telling me it needed two double quotes with a space in the middle.. Would that work too?

    Also, is there any reason why adding a folder path to MENU xferinfo in the File Info Section, for example: MENU darkside\xferinfo

    When I add the folder path none of the options on the File Info Section menu work except for 'Q'.

    Note: Adding the folder path to all the other MENU statments within Default.src works as expected.

    Thanks again,

    -=U13=-

    ---
    þ Synchronet þ The DarkSide of the Moon - telnet://darkside.synchro.net
  • From Digital Man@VERT to Uatu13 on Tue Sep 26 11:33:23 2017
    Re: Default.src
    By: Uatu13 to Digital Man on Mon Sep 25 2017 09:09 pm

    Re: Default.src
    By: Digital Man to Uatu13 on Mon Sep 25 2017 15:44:46

    cmdkey " <---
    end_cmd

    2. Is that last cmdkey supposed to only be one double quote (') ?

    No, it's correct. It just means a blank command key (a space character).

    digital man

    Thanks, my experience was telling me it needed two double quotes with a space in the middle.. Would that work too?

    No. The documented method would be like so:
    cmdkey ' '

    http://synchro.net/docs/baja.html#CommandKeyConstants

    But some other syntaxes produce the same result.

    Also, is there any reason why adding a folder path to MENU xferinfo in the File Info Section, for example: MENU darkside\xferinfo

    When I add the folder path none of the options on the File Info Section menu work except for 'Q'.

    Note: Adding the folder path to all the other MENU statments within Default.src works as expected.

    No, I see no reason why that would be. The "menu" function is just for displaying the menu (e.g. ANSI) file to the user and has nothing to do with the command key parsing/processing. If an option/command doesn't work, I suspect something else is the matter.

    digital man

    Synchronet "Real Fact" #68:
    Robert D. Bouman, the author of SyncEdit, died in the mid to late 1990's. Norco, CA WX: 84.3øF, 19.0% humidity, 3 mph ESE wind, 0.00 inches rain/24hrs

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Uatu13@VERT/DARKSIDE to Digital Man on Tue Sep 26 21:43:58 2017
    Re: Default.src
    By: Digital Man to Uatu13 on Tue Sep 26 2017 11:33:23

    Also, is there any reason why adding a folder path to MENU xferinfo in
    the File Info Section, for example: MENU darkside\xferinfo

    No, I see no reason why that would be. The "menu" function is just for displaying the menu (e.g. ANSI) file to the user and has nothing to do with the command key parsing/processing. If an option/command doesn't work, I suspect something else is the matter.

    digital man

    Thanks. I suspected this, but just had to check because nothing else makes sense. I copied the Default.src to Darkside.src then added the path darkside\menufile to all the MENU functions. The Darkside folder resides in the text\menu folder and all the custom menu files display, but none of the info_ functions are working when that command shell is used; I discovered last night that it's not just the File Info, it's also the Main Info not working as well.

    I guess I'll have to start over and test after I add each path to the .src file to hunt this down.

    Thanks for help as always! :)

    -=U13=-

    ---
    þ Synchronet þ The DarkSide of the Moon - telnet://darkside.synchro.net
  • From Digital Man@VERT to Uatu13 on Wed Sep 27 10:57:06 2017
    Re: Default.src
    By: Uatu13 to Digital Man on Tue Sep 26 2017 09:43 pm

    Re: Default.src
    By: Digital Man to Uatu13 on Tue Sep 26 2017 11:33:23

    Also, is there any reason why adding a folder path to MENU xferinfo in
    the File Info Section, for example: MENU darkside\xferinfo

    No, I see no reason why that would be. The "menu" function is just for displaying the menu (e.g. ANSI) file to the user and has nothing to do with the command key parsing/processing. If an option/command doesn't work, I suspect something else is the matter.

    digital man

    Thanks. I suspected this, but just had to check because nothing else makes sense. I copied the Default.src to Darkside.src then added the path darkside\menufile to all the MENU functions. The Darkside folder resides in the text\menu folder and all the custom menu files display, but none of the info_ functions are working when that command shell is used; I discovered last night that it's not just the File Info, it's also the Main Info not working as well.

    But the other menu files work okay?

    I guess I'll have to start over and test after I add each path to the .src file to hunt this down.

    You might want to use a forward-slash instead of a backslash. Forward-slashes are cross-platform (work in both Windows and *nix) and they don't need escaping (e.g. "\\") in any context.

    digital man

    Synchronet "Real Fact" #66:
    Synchronet was conceived of and mostly developed in southern California.
    Norco, CA WX: 81.2øF, 27.0% humidity, 1 mph E wind, 0.00 inches rain/24hrs

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From MRO@VERT/BBSESINF to Uatu13 on Wed Sep 27 16:25:26 2017
    Re: Default.src
    By: Uatu13 to Digital Man on Tue Sep 26 2017 09:43 pm

    darkside\menufile to all the MENU functions. The Darkside folder resides in the text\menu folder and all the custom menu files display, but none of the info_ functions are working when that command shell is used; I discovered last night that it's not just the File Info, it's also the Main Info not working as well.

    I guess I'll have to start over and test after I add each path to the .src file to hunt this down.

    Thanks for help as always! :)


    go to my bbs, bbs.eob-bbs.com and send me an email with your email address. also if you want to at this point, zip up your menus and the .src file and send it to me and i will look it over and run it on my test system and fix it up if i can.

    i'm also on irc at irc.bbses.info user mro. you can pm be the info but i dont take file xfers.
    ---
    þ Synchronet þ ::: BBSES.info - free BBS services :::
  • From Uatu13@VERT/DARKSIDE to Digital Man on Wed Sep 27 22:12:21 2017
    Re: Default.src
    By: Digital Man to Uatu13 on Wed Sep 27 2017 10:57:06

    Re: Default.src
    By: Digital Man to Uatu13 on Tue Sep 26 2017 11:33:23

    Also, is there any reason why adding a folder path to MENU xferinfo
    in the File Info Section, for example: MENU darkside\xferinfo

    No, I see no reason why that would be. The "menu" function is just
    for displaying the menu (e.g. ANSI) file to the user and has
    nothing to do with the command key parsing/processing. If an
    option/command doesn't work, I suspect something else is the
    matter.
    digital man

    Thanks. I suspected this, but just had to check because nothing else
    makes sense. I copied the Default.src to Darkside.src then added the
    path darkside\menufile to all the MENU functions. The Darkside folder
    resides in the text\menu folder and all the custom menu files display,
    but none of the info_ functions are working when that command shell is
    used; I discovered last night that it's not just the File Info, it's
    also the Main Info not working as well.

    But the other menu files work okay?

    As far as I can tell the only menus affected are the ones with info_ functions related to them (xferinfo, maininfo). All other custom menus load and all cmdkeys work as expected.

    I guess I'll have to start over and test after I add each path to the
    .src file to hunt this down.

    You might want to use a forward-slash instead of a backslash. Forward-slashes are cross-platform (work in both Windows and *nix) and they don't need escaping (e.g. "\\") in any context.

    digital man

    Interestingly enough, I had already used forward-slashes on the other menu calls. I've changed the File Info Menu call to "menu darkside/xferinfo" without the quotes obviously. I still had the same issue.

    I believe I've isolated the cause although I don't understand it.

    I have not yet created custom .ans files for xferinfo or maininfo, but was about to. As a quick and dirty test I had originally copied xferino.asc to menu/darkside then I used asc2ans to convert.

    I have since opened xferinfo.ans into an editor, made a minor text change and saved. Now the info_ functions work correctly when that menu is displayed.

    Please let me know if you have any questions and I hope you can shed some light on this for me. :)

    Thanks,

    -=U13=-

    ---
    þ Synchronet þ The DarkSide of the Moon - telnet://darkside.synchro.net
  • From Uatu13@VERT/DARKSIDE to MRO on Wed Sep 27 22:14:31 2017
    Re: Default.src
    By: MRO to Uatu13 on Wed Sep 27 2017 16:25:26

    Re: Default.src
    By: Uatu13 to Digital Man on Tue Sep 26 2017 09:43 pm

    darkside\menufile to all the MENU functions. The Darkside folder
    resides in the text\menu folder and all the custom menu files display,
    but none of the info_ functions are working when that command shell is
    used; I discovered last night that it's not just the File Info, it's
    also the Main Info not working as well.

    I guess I'll have to start over and test after I add each path to the
    .src file to hunt this down.

    Thanks for help as always! :)

    go to my bbs, bbs.eob-bbs.com and send me an email with your email address. also if you want to at this point, zip up your menus and the .src file and send it to me and i will look it over and run it on my test system and fix it up if i can.

    i'm also on irc at irc.bbses.info user mro. you can pm be the info but i dont take file xfers.
    ---
    þ Synchronet þ ::: BBSES.info - free BBS services :::

    Thank you for the kind offer Mro! I believe I have this sorted out, but if I need further assitance with my command shell I will be sure and ask. :)

    -=U13=-

    ---
    þ Synchronet þ The DarkSide of the Moon - telnet://darkside.synchro.net