visualShell
puts up a terminal interface to the leve system
Bruno Böttcher <bboett at adlp dot org>
Copyright (c) 2002 Bruno Boettcher
visualShell.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
- instantiateTerm
-
create the shell object ready to start the session after that
- 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
-
shutdown the whole thing
- delegate
-
send the stuff piped here to the controlling session
- 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
-
an alternative to the print method prints out on the console but as the
same time pastes the stuff also into a log file
- print
-
wrapper for the print method, prints to a visual instance if present otherwise to the console
- server
-
Getter for the server instance the thing that allows us to communicate
with the patternServer
- got_input_handler
-
some input went in from the visaul instance, handle it
- keypressed
-
some key was pressed in the visaul console, lookit up, if its a tab,
count it, and make the adjustments as necessary for eventual
completions.
- setargCompletions
-
getter to setup the argument completion list
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/