• weird js thing...?

    From Digital Man@VERT to Esc on Wednesday, September 09, 2009 09:33:38
    Re: weird js thing...?
    By: Esc to All on Sun Sep 06 2009 08:30 pm

    Ok, I have my shell completely in .js, and most everything is going as planned.
    There is one peculiar issue, though...

    When I try to list files, I use the following command:

    bbs.menu.baja("setstr *.*" + "\r\n" + "file_list");

    This expression makes not sense to me. bbs.menu() is a method for displaying a menu file (e.g. a Ctrl-A or ANSI file).

    The bbs tries to run baja /sbbs/exec/temp_1.src, and then launch that file.

    I have no temp_1.src. I am running 3.15 as of today, and this file is nowhere to be found. Ideas? :)

    No, I'm not clear on what you're trying to do.

    digital man

    Snapple "Real Fact" #12:
    Emus and Kangaroos cannot walk backwards.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ telnet://vert.synchro.net
  • From Digital Man@VERT to Esc on Wednesday, September 09, 2009 09:36:17
    Re: weird js thing...?
    By: Esc to Nightfox on Mon Sep 07 2009 06:35 pm

    Re: weird js thing...?
    By: Nightfox to Esc on Sun Sep 06 2009 09:37 pm

    Re: weird js thing...?
    By: Esc to All on Sun Sep 06 2009 20:30:51

    When I try to list files, I use the following command:

    bbs.menu.baja("setstr *.*" + "\r\n" + "file_list");

    To list files, try using this command instead:
    bbs.list_files();

    Nightfox


    Yeah, I suppose I could take a look at that ;) However, I got it to work. The issue was that windows 7 has ridiculous issues with letting programs launch other programs. As such, it wasn't allowing synchronet to launch baja.exe. On WinXP, it works just fine.

    But it's ridiculous to launch baja.exe everytime a user wants to list files. Don't do that!

    digital man

    Snapple "Real Fact" #50:
    Mosquitos have 47 teeth.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ telnet://vert.synchro.net
  • From Digital Man@VERT to Nightfox on Wednesday, September 09, 2009 09:41:29
    Re: weird js thing...?
    By: Nightfox to Esc on Mon Sep 07 2009 07:39 pm

    Re: weird js thing...?
    By: Esc to Nightfox on Mon Sep 07 2009 18:35:20

    bbs.menu.baja("setstr *.*" + "\r\n" + "file_list");

    To list files, try using this command instead:
    bbs.list_files();

    Yeah, I suppose I could take a look at that ;) However, I got it to work issue was that windows 7 has ridiculous issues with letting programs laun other programs. As such, it wasn't allowing synchronet to launch baja.ex WinXP, it works just fine.

    Ah, interesting. Good to know you got it to work.

    By the way, your bbs.menu.baja command interested me, because I've also converted my command shell to JavaScript, but there was still one thing I had to keep in Baja: Letting the user configure their file scan pointer.
    The reason is that there doesn't seem to be an equivalent JavaScript function for that.

    Use bbs.get_newscantime(), like so:

    bbs.new_file_time = bbs.get_newscantime(bbs.new_file_time);

    digital man

    Snapple "Real Fact" #23:
    The San Francisco Cable cars are the only mobile national monument.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ telnet://vert.synchro.net