On 11/19/2009 3:14 PM, Nightfox wrote:ã>> In S3, I have the baja in a loop with a pause prompt after exit, because ã>> need to exit out of the JS if you want to support changing shells.ã> ã> There's an alternate way to handle that, as recommended by Digital Man. Inã> your .js shell, you can check for whether the user changed their shell and exitã> if so, as follows:ã> ã> user.cached = false;ã> var oldShell = user.command_shell;ã> bbs.user_config();ã> user.cached = false;ã> bbs.user_sync();ã> if (user.command_shell != oldShell)ã> exit(0);ããCool, I have something similar to jump out, without a cold exit.ãã> That's how I'm doing it in my .js shell, and the only thing I do in my Baja isã> simply run my .js script, and it is able to support changing shells.ããwell, mine has the added ability to CTRL-C out of the script, and make ãchanges, hit enter and in the updated version. ;) This was really helpful ãwhen I was actively working on it.ãã-- ãMichael J. Ryan -
http://tracker1.info/ãã---ã þ Synchronet þ Roughneck BBS -
telnet://roughneckbbs.com - www.roughneckbbs.comã