• Help with Command Shell for menus

    From Chris Schneider@VERT to All on Wednesday, November 28, 2012 21:25:46
    All,

    I need help writing a command shell that will detect The column width and if it is 40 columns
    then 40 column menus would be displayed and if 80 then the standard menus for 80 column whether
    it be .ASC or .ANS depending on what the users terminal will display.

    I have no experience writing command shells and any help would be greatly appreciated.

    Chris
    houstonguitarpro@att.net


    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ telnet://vert.synchro.net
  • From Nightfox@VERT/DIGDIST to Chris Schneider on Thursday, November 29, 2012 19:57:13
    Re: Help with Command Shell for menus
    By: Chris Schneider to All on Wed Nov 28 2012 21:25:46

    All,

    I need help writing a command shell that will detect The column width and
    if it is 40 columns then 40 column menus would be displayed and if 80 then the standard menus for 80 column whether it be .ASC or .ANS depending on what the users terminal will display.

    I have no experience writing command shells and any help would be greatly appreciated.

    Are you writing your command shell in Baja or JavaScript? I'd highly recommend JavaScript, as it is more flexible and provides more functionality. There is some nice documentation on Synchronet's JavaScript interface on the web here: http://www.synchro.net/docs/jsobjs.html
    Using Synchronet's JavaScript object model, you can find out the terminal width with the screen_columns property of the console object: http://www.synchro.net/docs/jsobjs.html#console

    Nightfox


    ---
    þ Synchronet þ Digital Distortion BBS - digitaldistortionbbs.com
  • From Cryptic@VERT/SKYNET to Nightfox on Saturday, December 01, 2012 00:19:45
    Re: Help with Command Shell for menus
    By: Nightfox to Chris Schneider on Thu Nov 29 2012 07:57 pm

    Re: Help with Command Shell for menus
    By: Chris Schneider to All on Wed Nov 28 2012 21:25:46

    All,

    I need help writing a command shell that will detect The column width and if it is 40 columns then 40 column menus would be displayed and if 80 the
    n
    the standard menus for 80 column whether it be .ASC or .ANS depending on what the users terminal will display.

    I have no experience writing command shells and any help would be greatly appreciated.

    Are you writing your command shell in Baja or JavaScript? I'd highly recomm
    end
    JavaScript, as it is more flexible and provides more functionality. There i
    s
    some nice documentation on Synchronet's JavaScript interface on the web here
    :
    http://www.synchro.net/docs/jsobjs.html
    Using Synchronet's JavaScript object model, you can find out the terminal wi
    dth
    with the screen_columns property of the console object: http://www.synchro.net/docs/jsobjs.html#console

    Nightfox


    I am assuming it needs to be in javascript. I do not know javascript though.
    I need it to detect and display the correct menu because alot of the users
    that this system will be targeted do not have an 80column display. They are old TI-99/4a users. 40 column is the max for them, but some have 80, so that's why i need both.
    thanks,

    ---
    þ Synchronet þ SKYNET - skynet.bounceme.net
  • From Mro@VERT/BBSESINF to Cryptic on Saturday, December 01, 2012 08:55:46
    Re: Help with Command Shell for menus
    By: Cryptic to Nightfox on Sat Dec 01 2012 12:19 am

    I am assuming it needs to be in javascript. I do not know javascript though. I need it to detect and display the correct menu because alot of
    the users that this system will be targeted do not have an 80column
    display. They are old TI-99/4a users. 40 column is the max for them, but some have 80, so that's why i need both.
    thanks,


    cant you just have them choose which shell they want once, and it will always be displayed to them?

    ---
    þ Synchronet þ ::: BBSES.info - free BBS services :::
  • From Chris Schneider@VERT to Mro on Saturday, December 01, 2012 10:05:19
    Re: Help with Command Shell for menus
    By: Mro to Cryptic on Sat Dec 01 2012 08:55 am

    Re: Help with Command Shell for menus
    By: Cryptic to Nightfox on Sat Dec 01 2012 12:19 am

    I am assuming it needs to be in javascript. I do not know javascript though. I need it to detect and display the correct menu because alot of the users that this system will be targeted do not have an 80column display. They are old TI-99/4a users. 40 column is the max for them, but some have 80, so that's why i need both.
    thanks,


    cant you just have them choose which shell they want once, and it will always be displayed to them?

    that may just work. I did even think of that. I will create a new one with 40 column menus and test.
    thanks for the suggestion..


    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ telnet://vert.synchro.net
  • From Mro@VERT/BBSESINF to Chris Schneider on Saturday, December 01, 2012 12:58:32
    Re: Help with Command Shell for menus
    By: Chris Schneider to Mro on Sat Dec 01 2012 10:05 am

    cant you just have them choose which shell they want once, and it will always be displayed to them?

    that may just work. I did even think of that. I will create a new one
    with 40 column menus and test. thanks for the suggestion..


    i have a blind menuset that i uploaded to vert that you might want to try.
    i made it for a blind user and i use it sometimes when i telnet in from my phone.

    ---
    þ Synchronet þ ::: BBSES.info - free BBS services :::
  • From Chris Schneider@VERT to Mro on Saturday, December 01, 2012 18:54:28
    Re: Help with Command Shell for menus
    By: Mro to Chris Schneider on Sat Dec 01 2012 12:58 pm

    I downloaded your menu set. it works for me mostly, but I do get the below error. I have granted "Everyone" full permission on the folder.
    Anythign else I need to do to fix this error?

    Also how did you make it, in what? Is it compile in baja?


    Error:

    Node 1 !ERROR 13 (Permission denied) (WinError 0) in exec.cpp line 1184 reading "c:\sbbs\ctrl\blind_text.dat" access=762

    Chris


    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ telnet://vert.synchro.net
  • From Corey@VERT/TSGC to Chris Schneider on Saturday, December 01, 2012 19:43:29
    Re: Help with Command Shell for menus
    By: Chris Schneider to Mro on Sat Dec 01 2012 06:54 pm

    Subject: Help with Command Shell for menus
    @MSGID: <50BAC2E4.1277.sync-js@vert.synchro.net>
    @REPLY: <50BA5358.1214.sync_js@bbses.info>
    @TZ: 41e0
    Re: Help with Command Shell for menus
    By: Mro to Chris Schneider on Sat Dec 01 2012 12:58 pm

    I downloaded your menu set. it works for me mostly, but I do get the below Anythign else I need to do to fix this error?

    Also how did you make it, in what? Is it compile in baja?


    Error:

    Node 1 !ERROR 13 (Permission denied) (WinError 0) in exec.cpp line 1184 read

    Chris



    err, is the file there?

    "Practise safe Lunch, Use a Condiment"


    ---
    þ Synchronet þ Three Stooges Gentlemens Club - Las Vegas, Nv
  • From Mro@VERT/BBSESINF to Chris Schneider on Sunday, December 02, 2012 09:14:59
    Re: Help with Command Shell for menus
    By: Chris Schneider to Mro on Sat Dec 01 2012 06:54 pm

    Re: Help with Command Shell for menus
    By: Mro to Chris Schneider on Sat Dec 01 2012 12:58 pm

    I downloaded your menu set. it works for me mostly, but I do get the below error. I have granted "Everyone" full permission on the folder. Anythign else I need to do to fix this error?

    Also how did you make it, in what? Is it compile in baja?


    Error:

    Node 1 !ERROR 13 (Permission denied) (WinError 0) in exec.cpp line 1184 reading "c:\sbbs\ctrl\blind_text.dat" access=762




    i dont provide support for my 3rd party mods in the synchronet javascript echo. also it's not javascript it's baja.

    please send me an email if you have any problems.
    my bbs is eob-bbs.com

    i dont want to post my email address here because it will be harvested for years from spammers.

    if you are running that mod on linux you need to check the filename case and change the slashes

    ---
    þ Synchronet þ ::: BBSES.info - free BBS services :::