• Converting shell?

    From Tmcca@VERT to All on Sun May 24 17:41:09 2026
    I am making progress converting obv/2 baja to modernized javascript.
    However, I can't figure out how to remove the hit key prompt when it displays main menu

    This is what I have so far:

    "use strict";

    // Required modules
    require("sbbsdefs.js", "SYS_RA_EMU");
    require("userdefs.js", "UFLAG_T");
    require("nodedefs.js", "NODE_MAIN");
    require("key_defs.js", "KEY_UP");
    require("gettext.js", "gettext");
    load("termsetup.js");

    var shell = load({}, "shell_lib.js");

    // OBV/2 uses RA emulation mode
    system.settings |= SYS_RA_EMU;

    // OBV/2 help key
    shell.help_key = '?';

    // DO NOT force coldkeys Ä user preference controls it
    // (user.settings |= USER_COLDKEYS) <-- removed
    // may implement this though not sure if OBV shell had this as default

    // ------------------------------------------------------------
    // OBV/2 MAIN MENU
    // ------------------------------------------------------------
    shell.main_menu = {
    cls: true,
    file: "obv-2/main",
    eval: 'bbs.main_cmds++',
    node_action: NODE_MAIN,
    prompt: gettext("\x01l\x01n\x01gMain \x01c¨\x01h@TLEFT@\x01n\x01c¨ \x01h\x01kC\x01n\x01go\x01hm\x01nm\x01hand: \x01n"),
    command: {
    'A': { eval: 'bbs.auto_msg()' },
    'B': { eval: 'bbs.exec_xtrn("sbbslist")' },
    'C': { eval: 'bbs.page_sysop()' },
    'D': { eval: 'bbs.list_logons()' },
    'E': { eval: 'menu = email_menu' },
    'F': { eval: 'send_feedback()' },
    'G': { eval: 'logoff(false)' },
    '/G': { eval: 'logoff(true)' },
    'H': { eval: 'bbs.whos_online()' },
    'I': { eval: 'bbs.chat_sec()' },
    'K': { eval: 'bbs.user_config(); exit()' },
    '+': { eval: 'bbs.user_config(); exit()' },
    'L': { eval: 'bbs.list_users(UL_ALL)' },
    'M': { eval: 'menu = message_menu' },
    'P': { eval: 'bbs.xtrn_sec()' },
    'Q': { eval: 'menu = quick_menu' },
    'S': { eval: 'main_info()' },
    'T': { eval: 'enter_file_section(); menu = files_menu' },
    'U': { eval: 'bbs.time_bank()' },
    'W': { eval: 'bbs.exec("?logonlist")' },
    'Y': { eval: 'bbs.user_info()' },
    'X': { eval: 'user.settings ^= USER_EXPERT' },
    'Z': { eval: 'bbs.reinit_msg_ptrs()' },
    },
    nav: {
    '\r': { },
    'E': { eval: 'menu = email_menu' },
    'M': { eval: 'menu = message_menu' },
    'Q': { eval: 'menu = quick_menu' },
    'T': { eval: 'enter_file_section(); menu = files_menu' },
    }
    };

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From mark lewis@VERT to Tmcca on Sun May 24 22:12:00 2026
    On 2026 May 24 17:41:08, you wrote to All:

    I am making progress converting obv/2 baja to modernized javascript. However, I can't figure out how to remove the hit key prompt when it displays main menu

    displaying a file? how many lines is it?
    maybe try the POFF @-code at the top and the PON @-code at the bottom?
    i've written them this way without the leading @ as a precaution to keep them from being interpreted by sbbs when someone reads this message online ;)
    check the wiki for the @-codes page...

    )\/(ark

    "The soul of a small kitten in the body of a mighty dragon. Look on my majesty, ye mighty, and despair! Or bring me catnip. Your choice. Oooh, a shiny thing!"
    ... Sigh. You caught me in the only mistake I have ever made ever.
    ---
    * Origin: (1:3634/12.73)
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net