First off, copyright details for the various utilities used. I'm pretty sure
I'm allowed to distribute these, but if you know different please let me know
as soon as possible.

  TaskMsg    - Originally by James Ponder of DoggySoft, extended by me to add
               PreQuit. Copyright remains with James Ponder, of course.
  WaitPoll   - Copyright Technium220
  X          - Most people will have this as part of their boot sequence, but
               this is simply a rewrite of the Acorn one.
  SWI        - Totally unknown, sorry whoever wrote it - but I know it is PD.
  TestAlt    - Again - unknown author, but PD.
  

Install all the above little utilities in !Boot.Library, or anywhere in
Run$Path. Then, to swap from the GUI to the CLI client simply run the obey
file 'RC5cli'. This is probably best done from some desktop utility (such as
installing it as a WimpBar2 macro ;).

This is what will happen when the Obey file is run: The GUI client will open
its window to show you what is happening. It should then shutdown, and quit
after a small pause. The machine will then switch to single-tasking and
launch the CLI client (the screen will also blank). On pressing Escape, the
CLI client will quit, the desktop will be restored, and the GUI version
re-run.

There are two things you should know about:

 - Although the script tries to restore your sound system to its original
   state on return to the desktop, it cannot guarantee this. Because SoundDMA
   is killed to speed up cracking, all sound is lost and has to be restored
   on return to the desktop. Simply change the line that says 'X RMReinit
   Doh!' to whatever system beep module you use and all should be fine.
   
 - Due to a niggle with communications between the utility 'TaskMsg' and the
   GUI client, it has been known for the GUI client not to shutdown properly.
   If this happens (ie. you do not see the 'Shutdown' message in the window)
   just press either Alt and the rest of the process is ignored and you can
   try again. (Hence the three shutdown attempts in the script)
   This hasn't been a problem for me, but I believe it may be on slower
   machines.


Okay, try it.

-- 
Steven Purchase...


I suppose the script is copyright Technium220, though feel free to pick at it
as much as you like. Everyone should be making their own handy little scripts
like this...