Door Games Unlimited

Welcome, Guest.


Subject: Coding shell switching into a shell Date: Sun Jan 25 2015 13:55:04
From: Khelair To: Nightfox

  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.
 > 
 >  Kh> Anyway, I realized that after pulling up the correct routine for select
 >  Kh> a new shell, I'm still stuck in my code. Is that something where I need
 >  Kh> actively search out the shell that I've switched to, clean up my shell'
 >  Kh> 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.

-=-
Borg Burger:  We do it our way; your way is irrelevant.

---
 ■ Synchronet ■ Tinfoil Tetrahedron BBS telnet://tinfoil.synchro.net

Previous Message       Next Message
In Reply To: Coding shell switching into a shell (Nightfox)
Replies: Coding shell switching into a shell (Digital Man)