Subj : command shell question To : xbit From : Digital Man Date : Wed May 27 2026 11:26:46 Re: command shell question By: xbit to All on Wed May 27 2026 11:13 am > As discussed in IRC the other day, i've made a few updates to my Spitfire > command shell. https://github.com/xbit44/spitfire-cs > > When using bbs.menu_dir to redirect menus to a shell subfolder, some > internal menu calls in external scripts (like multchat in chat_sec.js and > logoff screens) also look in the subfolder and fail. Is there a way to have > our custom menus display from the shell subfolder while letting these > internal/system menus fall back to the default text/menu location? > > The problem i think i'm having is chat_sec.js calls bbs.menu("multchat") > internally while menu_dir is still "spitfire". I think the advice works for > single-level calls but chat_sec.js makes its own nested bbs.menu() calls > that I can't seem to intercept. > > So for example, my chat menu works but when i click J i get an error that > the menu can't be found as its looking in /text/menu/spitfire. I think this > is my last menu issue, but we'll see. Your Claude misinterpretted my advice. My advice as to set bbs.menu_dir before calling any internal (hard-coded in C++) section or module you don't want to copy/modify and then reset it immediately after, e.g.: bbs.menu_dir = "spitire"; bbs.qwk_sec(); bbs.menu_dir = ""; bbs.menu_dir = "spitfire"; bbs.chat_sec(); bbs.menu_dir = "": And everywhere your script (already) calls bbs.menu() directly, just continue to pass subdirectory in the path: bbs.menu("spitfire/main"); -- digital man (rob) Rush quote #52: His world is under observation, we monitor his station .. Digital Man 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 .