Next: Event Driven Services
Up: The Interface Services
Previous: Future Improvements
As not all commands need to be executed over a socket connection,
Haystack provides the HsCommandLine service. This service
simply sits and listens to the System.in InputStream (same as
STDIN). Whenever the user types a command and hits enter, the string
is sent off to the HsCommandAPI.
The only two important functions of this service are: run() which
starts the service listenting, and setPrompt() which the user to
change the prompt that is visible on the command line (default:
``Haystack> '').
Copyright 1998, Eytan Adar (eytan@alum.mit.edu)