• Command shell issue?

    From drillsar@VERT/DIGDIST to All on Sunday, May 31, 2026 02:02:19
    everything is working in the command shell except library up and down and I don't know why.

    print "\x01n\x01gFile \x01c¨ \x01h@TLEFT@ \x01n\x01c¨ \x01h\x01c(@LN@) @LIB@ (@DN@) @DIR@: "
    shell.file_menu = {
    file: "obv-2/files",
    cls: true,
    eval: 'bbs.file_cmds++',
    node_action: NODE_XFER,
    prompt: "\x01n\x01gFile \x01c¨ \x01h"
    + time_code
    + " \x01n\x01c¨ \x01h\x01c(@LN@) @LIB@ (@DN@) @DIR@: ",
    num_input: shell.get_dir_num,
    slash_num_input: shell.get_lib_num,
    command: {
    'A': { eval: 'console.clear(); select_file_area();' },
    'B': { eval: 'bbs.batch_menu()' },
    'C': { exec: 'filescancfg.js' },
    '/D': { eval: 'download_files()', msg: '\r\n\x01c\x01hDownload File(s)\r\n', ars: 'REST NOT D' },
    'E': { eval: 'view_file_info(FI_REMOVE)', msg: '\r\n\x01c\x01hRemove/Edit File(s)\r\n' },
    'G': { eval: 'logoff(false)' },
    '/G': { eval: 'logoff(true)' },
    'K': { eval: 'file_config_listing()' },
    'L': { eval: 'list_files()' },
    'N': { eval: 'bbs.scan_dirs(FL_ULTIME)', msg: '\r\n\x01c\x01hNew File Scan\r\n' },
    'R': { eval: 'bbs.batch_menu()' },
    'S': { eval: 'bbs.scan_dirs(FL_NO_HDR)', msg: '\r\n\x01c\x01hSearch for Filename(s)\r\n' },
    'T': { eval: 'bbs.temp_xfer()' },
    'U': { eval: 'upload_file()', msg: '\r\n\x01c\x01hUpload File\r\n' },
    '/U': { eval: 'upload_user_file()', msg: '\r\n\x01c\x01hUpload File to User\r\n' },
    'V': { eval: 'view_files()', msg: '\r\n\x01c\x01hView File(s)\r\n' },
    'W': { eval: 'view_file_info(FI_INFO)', msg: '\r\n\x01c\x01hExtended File Information\r\n' },
    'X': { eval: 'show_sysop_wants()' }
    },
    nav: {
    '\r': {},
    'M': { eval: 'menu = shell.message_menu' },
    'Q': { eval: 'menu = shell.main_menu' },
    '+': { eval: 'dir_up()' },
    '-': { eval: 'dir_down()' },
    '*': { eval: 'show_dirs(bbs.curlib)' },
    '/*': { eval: 'show_libs()' },
    ']': { eval: 'lib_up()' },
    '[': { eval: 'lib_down()' },
    }
    };

    // Arrow keys
    shell.file_menu.nav[KEY_UP] = { eval: 'dir_up()' }; shell.file_menu.nav[KEY_DOWN] = { eval: 'dir_down()' }; shell.file_menu.nav[KEY_RIGHT] = { eval: 'lib_up()' }; shell.file_menu.nav[KEY_LEFT] = { eval: 'lib_down()' };

    ---
    þ Synchronet þ Digital Distortion: digitaldistortionbbs.com
  • From drillsar@VERT/DIGDIST to All on Sunday, May 31, 2026 02:04:18
    print "\x01n\x01gFile \x01c¨ \x01h@TLEFT@ \x01n\x01c¨ \x01h\x01c(@LN@) @LIB@ (@DN@) @DIR@: " first line was mistake wasnt supposed to be there

    ---
    þ Synchronet þ Digital Distortion: digitaldistortionbbs.com
  • From drillsar@VERT/DIGDIST to Digital Man on Sunday, May 31, 2026 20:59:11
    Figured it out. Dumb me. I only had one library Main. It's functioning. I have converted fully now to JavaScript. I will make a pull request if you want. A couple of things before though. The K command in the file was never added. I did add it and made a separate call library for this shell since it had a ton of functions like $ (donations), X (Sysop want list), K (file_config listing). Should that $ function be there anymore? Maybe instead add an Expert toggle switch instead? Thanks for all the help.

    ---
    þ Synchronet þ Digital Distortion: digitaldistortionbbs.com
  • From drillsar@VERT/DIGDIST to Digital Man on Sunday, May 31, 2026 22:00:53
    The K command was in the file menu never added in the OBV-2 Ansi file menu it says config listing. I made a merge request on gitlab.synchro.net. Thanks

    ---
    þ Synchronet þ Digital Distortion: digitaldistortionbbs.com