So I started using bbs.select_shell(). Now I just realized that part of the problem might be that I'm currently debugging it as a door, and not as a shell, so let me know if that's my primary fubar and I'll just shut up and slink away. *grin*
Anyway, I realized that after pulling up the correct routine for selecting a new shell, I'm still stuck in my code. Is that something where I need to actively search out the shell that I've switched to, clean up my shell's environment, and jump to that code? The other 'shell' methods that I've
You should probably debug it with it set up as a shell rather than a door.
Anyway, I realized that after pulling up the correct routine for select a new shell, I'm still stuck in my code. Is that something where I need actively search out the shell that I've switched to, clean up my shell' environment, and jump to that code? The other 'shell' methods that I've
After running bbs.select_shell(), your shell might need to exit. I haven't tried using bbs.select_shell(), but in my shell I have a section where I cal bbs.user_config() to let the user change their configuration options. After doing so, I check whether user.command_shell has changed, and if so, my shel calls exit(0); so that it will exit, then it drops the user into their new shell. I do a few other things around there, which may or may not be necess
Re: Coding shell switching into a shell
By: Nightfox to Khelair on Sun Jan 25 2015 08:50:29
You should probably debug it with it set up as a shell rather than a door.
Anyway, I realized that after pulling up the correct routine for select a new shell, I'm still stuck in my code. Is that something where I need actively search out the shell that I've switched to, clean up my shell' environment, and jump to that code? The other 'shell' methods that I've
After running bbs.select_shell(), your shell might need to exit. I haven't tried using bbs.select_shell(), but in my shell I have a section where I cal bbs.user_config() to let the user change their configuration options. After doing so, I check whether user.command_shell has
changed, and if so, my shel calls exit(0); so that it will exit, then it drops the user into their new shell. I do a few other things around there, which may or may not be necess
Yeah, turns out that that's what did it. Works in both versions (door and shell), but since I'm so close to alpha testing this I just decided to start testing exclusively in shell mode.
Checkout exec/lbshell.js. It allows you to select/change shells dynamically.
Sysop: | Ree |
---|---|
Location: | Toronto, ON |
Users: | 2 |
Nodes: | 10 (0 / 10) |
Uptime: | 115:19:49 |
Calls: | 375 |
Calls today: | 2 |
Files: | 2 |
Messages: | 38,886 |