Subj : Coding shell switching into a shell
To : Khelair
From : Digital Man
Date : Mon Jan 26 2015 01:57 am
Re: Coding shell switching into a shell
By: Khelair to Nightfox on Sun Jan 25 2015 01:55 pm
> 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
> > Kh> select a new shell, I'm still stuck in my code. Is that something
> > Kh> where I need actively search out the shell that I've switched to,
> > Kh> clean up my shell' environment, and jump to that code? The other
> > Kh> '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.
digital man
Synchronet "Real Fact" #55:
Synchronet Terminal Server introduced SecureShell (SSH) support w/v3.14a (2006).
Norco, CA WX: 65.3�F, 29.0% humidity, 5 mph NNW wind, 0.00 inches rain/24hrs
---
� Synchronet � Vertrauen � Home of Synchronet � telnet://vert.synchro.net