[tcljava-dev] PATCH: Enhancement to Shell.java
Brought to you by:
mdejong
From: Shawn B. <sh...@qc...> - 2002-06-12 21:00:41
|
I have attached some enhancements I've made to Shell.java in the hope that they can be incorporated into the source tree. I've been using these changes in our Tcl-based simulators for awhile now. The purpose of these changes are to allow the Shell to be used by an application, but with * a custom command prompt instead of "% " * a custom interpreter, * support tcl_rcFileName The changes keep the same API with a new method called startShell public static void startShell( Interp interp, String[] args, String prompt ); ChangeLog: 2002-06-12 Shawn Boyce <sh...@qc...> * src/jacl/tcl/lang/Shell.java new method startShell which accepts an Interp and prompt String main(): modified to use invoke the startShell method support tcl_rcFileName Tcl var by evaluating the named file if set -- Shawn Boyce QCOM, Inc. Quality Software is Our Business http://www.qcominc.com |