jterm
*** Installation
Type make to build the jterm.jar and put it in your classpath. If you
haven't already included dynamicjava and beanshell to your classpath
add the two archives in the lib directory too.
To see what it does, try
java jterm.Test
This is a terminal for a dummy interpreter that "evaluates" command
strings by converting them to lower case. For a really useful example
get the bsh package from http://www.beanshell.org and place it in your
classpath. Then you can try
java jterm.BshTerm
Another example would be the koala package available at
http://www-sop.inria.fr/koala/djava/index.html. If this is installed,
you can try
java jterm.DynamicJavaTerm
*** Usage
The Enter key will trigger evaluation of the current command (the text
portion after the last prompt). You can insert line breaks using Shift-Enter.
Text is always inserted at the caret position. You can move the caret
within the part after the last prompt using the left and right arrow
keys.
The up and down arrow keys allow navigation in the command history.
The Tab key asks for suggestions for completing the current
command. Only the BshTerm example supports this feature.
You can use dragging with the left mouse button for selecting portions
of the text, which will copy the selection to your window systems
clipboard.
Pressing the middle mouse button anywhere in the window will paste the
window system's clipboard to the caret position (independent of the
mouse position).
*** Building and Cleanup
The Makefile supports the following targets:
lib (the default)
Create the file jterm.jar.
cls
Compile the classes only. Do not build the library.
docs
Generate documentation for the core features.
Note that javadoc prior to 1.4b2 does not generate the package overview.
NOTE: The documentation is linked against the java documentation from sun.
This should be changed before generating docs if a local mirror should be used.
clean:
remove the library file jterm.jar and the generated classes and
documentation.
|