• Baja to JavaScript conversion guide

    From Nightfox@VERT/DIGDIST to All on Thu Jul 16 15:47:42 2009
    Hi - I was wondering, is there a guide for converting Baja code to JavaScript ãsomewhere that someone could point me to? I'm working on converting my Baja ãcommand shell to JavaScript, and I've been able to figure out some of the ãJavaScript equivalents to what I'm doing in my Baja code, but it seems that a ãguide might make it easier. For instance, one of the Baja functions is ãGETKEYE, which gets a key and also allows slash commands, but I'm not sure ãwhat the equivalent would be in a JavaScript module - The console object has ãinkey(), getkey(), getstr(), getnum(), getkeys(), and gettemplate(), but I'm ãnot certain if one of those can perform the same functionality. It seems ãthat gettemplate() might do it, but the docs don't seem to specify the format ãof the template to pass to that function.ããNightfoxããã---ã þ Synchronet þ Digital Distortion BBSã
  • From Digital Man@VERT to Nightfox on Thu Jul 16 15:58:03 2009
    Re: Baja to JavaScript conversion guideã By: Nightfox to All on Thu Jul 16 2009 03:47 pmãã > Hi - I was wondering, is there a guide for converting Baja code toã > JavaScript somewhere that someone could point me to? I'm working onã > converting my Baja command shell to JavaScript, and I've been able toã > figure out some of the JavaScript equivalents to what I'm doing in my Bajaã > code, but it seems that a guide might make it easier. For instance, one ofã > the Baja functions is GETKEYE, which gets a key and also allows slashã > commands, but I'm not sure what the equivalent would be in a JavaScriptã > module - The console object has inkey(), getkey(), getstr(), getnum(),ã > getkeys(), and gettemplate(), but I'm not certain if one of those canã > perform the same functionality. It seems that gettemplate() might do it,ã > but the docs don't seem to specify the format of the template to pass toã > that function.ããNo, there is no guide (beside that of the combination of baja.html andãjsobjs.html) and the example code in CVS (e.g. exec/classic_shell.js).ããDeuce wrote a getkeye() method in JS (exec/coldfuncs.js) which looks like itãshould be the functional equivalent of the Baja GETKEYE function.ãã digital manããSnapple "Real Fact" #81:ãAlaska has more caribou then people.ã---ã þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.netã
  • From Nightfox@VERT/DIGDIST to Digital Man on Thu Jul 16 16:54:10 2009
    Re: Baja to JavaScript conversion guideã By: Digital Man to Nightfox on Thu Jul 16 2009 15:58:03ãã > > No, there is no guide (beside that of the combination of baja.html andã > > jsobjs.html) and the example code in CVS (e.g. exec/classic_shell.js).ãã > > Deuce wrote a getkeye() method in JS (exec/coldfuncs.js) which looks likeã > > should be the functional equivalent of the Baja GETKEYE function.ããThanks.ããNightfoxããã---ã þ Synchronet þ Digital Distortion BBSã