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: | Tandy |
---|---|
Location: | New York, USA |
Users: | 15 |
Nodes: | 13 (0 / 13) |
Uptime: | 02:01:53 |
Calls: | 335 |
Messages: | 113,420 |