org.adougou.cline
Class ShellPrompt

java.lang.Object
  |
  +--java.lang.Thread
        |
        +--org.adougou.cline.BasePrompt
              |
              +--org.adougou.cline.ShellPrompt
All Implemented Interfaces:
IPrompt, java.lang.Runnable

public class ShellPrompt
extends BasePrompt

Command prompt to be used within a xterm or DOS-shell.

See Also:
BasePrompt, TextAreaPrompt

Fields inherited from class org.adougou.cline.BasePrompt
err, in, out
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
ShellPrompt(java.lang.String name)
          Same idea as the other constructor, however will construct a new CommandRegister for use with the prompt.
ShellPrompt(java.lang.String name, CommandRegister register)
          The shell prompt is an easy one - it just makes use of System.out, System.err and System.in.
 
Methods inherited from class org.adougou.cline.BasePrompt
askBooleanQuestion, askQuestion, askQuestion, exit, printPrompt, redirectSystemIOToPrompt, registerCommand, registerPackage, run
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.adougou.cline.IPrompt
start
 

Constructor Detail

ShellPrompt

public ShellPrompt(java.lang.String name,
                   CommandRegister register)
The shell prompt is an easy one - it just makes use of System.out, System.err and System.in. The second parameter is a register of commands - which might have been created before we needed to allocate a ShellPrompt.

ShellPrompt

public ShellPrompt(java.lang.String name)
Same idea as the other constructor, however will construct a new CommandRegister for use with the prompt.