leveShell
puts up a terminal interface to the leve system
Bruno Böttcher <bboett at adlp dot org>
Copyright (c) 2002 Bruno Boettcher
leveShell.pl is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; version 2
of the License.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
- new
-
constructor for the new leve shell
- init
-
set up the main datastructures of this object, make it ready for the run
- start of the poe session
- stop of the poe session
- default of the poe session
- runShell
-
start and run the shell, this is an interactive process, so it won't exit unlees the user asks for it! this blocks all if not called from the correct spot!
- quit
-
shut down the whole thing
- delegate
-
pipe the stuff through to the server instance
- handle_task_result
-
Handle information returned from the task. Since we're using
POE::Filter::Reference, the $result is however it was created in the
child process. In this sample, it's a hash reference.
- handle_task_debug
-
Catch and display information from the child's STDERR. This was
useful for debugging since the child's warnings and errors were not
being displayed otherwise.
- handle_task_done
-
The task is done. Delete the child wheel, and try to start a new
task to take its place.
- Debug
-
print out, to the console and into a file
- server
-
getter method to set or get the reference to the series server
- got_input_handler
-
ome input came from the terminal, process it
- prompt
-
set the prompt of the terminal
I. Wronsky came up with the concept for leverloda
This gave B. Boettcher the incentive to begin this work, the
famous itching paradigm!
http://www.geocities.com/iwronsky/
http://poe.perl.org/