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: | fluid |
---|---|
Location: | wickliffe, ohio |
Users: | 5 |
Nodes: | 10 (0 / 10) |
Uptime: | 203:11:15 |
Calls: | 50 |
Files: | 15,838 |
Messages: | 50,768 |