Hey there!
I'm working on converting my command shell from Baja to JavaScript and I'm running into a few bugs that I can't figure out. I'm running the command shell to test it, so if I make any changes I have to switch to another command shell and then back to the one I'm testing .. no problem,
I've done
that when I've done my last few shells. HOWEVER, the problem I'm seeing is that when I switch from my new shell to one of the others it the one I switch to appears in my defaults and if I use 'console.putmsg(user.command_shell) it says my current shell is the one I switched to but the BBS is still using my new one. The commands are all the new shell.
Look at lbshell.js or classic_shell.js for working example of a JS shell that allows switching the current shell back to a Baja shell (and back
case 'S':
console.clear();
bbs.sys_info();
break;
Sysop: | digital man |
---|---|
Location: | Riverside County, California |
Users: | 1,043 |
Nodes: | 15 (0 / 15) |
Uptime: | 41:43:51 |
Calls: | 500,899 |
Calls today: | 2 |
Files: | 109,370 |
D/L today: |
4,712 files (479M bytes) |
Messages: | 304,223 |