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.
Re: Help with Command Shell for menusn
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
endthe 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
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.htmldth
Using Synchronet's JavaScript object model, you can find out the terminal wi
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,
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?
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..
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
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
Sysop: | MCMLXXIX |
---|---|
Location: | Prospect, CT |
Users: | 333 |
Nodes: | 10 (0 / 10) |
Uptime: | 16:19:33 |
Calls: | 574 |
Calls today: | 1 |
Messages: | 235853 |