• BAJA stub to load a JavaScript command shell/passing globals

    From Khelair@VERT/TINFOIL to All on Wednesday, July 16, 2014 10:13:31
    I'm going by some of the old wiki documentation and working on a command shell in JavaScript that is going to be loaded by a small BAJA stub. Of course, I'm being impatient after digging through the BAJA manual for ten minutes; I don't really want to sit and have to learn everything that I don't think I'm really going to get a chance to use in that language, as things stand right now.
    Can anybody tell me whether or not a variable declared with !global is going to be accessible through the JavaScript shell that I load, or would I need to pass via other means? I actually don't really NEED this feature, but I'm trying to do a few things the right way, as far as I see it.
    TIA

    -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

    This need not feel so strange; pay attention to Lady
    Liberty's Anklets, if you're so inclined.

    -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

    ---
    þ Synchronet þ Tinfoil Tetrahedron BBS telnet or ssh: tinfoil.synchro.net
  • From Digital Man@VERT to Khelair on Monday, August 18, 2014 17:59:45
    Re: BAJA stub to load a JavaScript command shell/passing globals
    By: Khelair to All on Wed Jul 16 2014 10:13 am

    I'm going by some of the old wiki documentation and working on a
    command shell in JavaScript that is going to be loaded by a small BAJA
    stub. Of course, I'm being impatient after digging through the BAJA manual for ten minutes; I don't really want to sit and have to learn everything that I don't think I'm really going to get a chance to use in that
    language, as things stand right now.
    Can anybody tell me whether or not a variable declared with !global is going to be accessible through the JavaScript shell that I load, or would I need to pass via other means? I actually don't really NEED this feature, but I'm trying to do a few things the right way, as far as I see it.

    No, but if you look at http://synchro.net/docs/jsobs.html, you'll find most of those global Baja variables have a JS equivalent.

    digital man

    Synchronet "Real Fact" #81:
    Flapuebarg unf vagreany ebg13 fhccbeg sbe fhcresvpvnyyl rapelcgvat grkg.
    Norco, CA WX: 83.4øF, 48.0% humidity, 17 mph SE wind, 0.00 inches rain/24hrs

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net