Subj : Working on new command shell in javascript To : Digital Man From : nolageek Date : Mon Mar 21 2016 01:29 am Re: Working on new command shell in javascript By: Digital Man to nolageek on Sun Mar 20 2016 04:45 pm DM> Look at lbshell.js or classic_shell.js for working example of a JS shell DM> that allows switching the current shell back to a Baja shell (and back Deuce pointed me in the right direction on IRC - I wasn't exiting the shell in the case of the shell changing. I added this to the top of the file: var thisShell = user.command_shell; Then in both main.Menu() and systemMenu() I added: if (thisShell.toUpperCase() != user.command_shell) { return; } Those are the only two menus that contain an option for 'defaults' so if the user changes their shell it will exit the new one when they go back to where they came from. This mimics the behaviour I see in other shells. |01-|03nolageek --- þ Synchronet þ Capitol Shrill BBS - Washington, DC - capitolshrill.com .