Command shell issue?
From
drillsar@VERT/DIGDIST to
All on Sun May 31 02:02:19 2026
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
Digital Man@VERT to
drillsar on Sun May 31 21:28:31 2026
Re: Command shell issue?
By: drillsar to Digital Man on Sun May 31 2026 08:59 pm
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.
Sure, but please do that on gitlab.synchro.net (not github.com).
A couple of things before though. The K command in the file was never
added.
Never added... in the baja version? K command from what menu?
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?
Probably not. Sometimes that decisions are made for cosmetic reasons (how many menu commands/options balances out the display/menu file).
--
digital man (rob)
This Is Spinal Tap quote #12:
Nigel Tufnel: Well, I don't know - wh-wh-... what're the hours?
Norco, CA WX: 70.6øF, 57.0% humidity, 0 mph NW wind, 0.00 inches rain/24hrs
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net