INTRODUCTION
Running PadDraw in this fashion does not give access to the Tcl interpreter. This is because the "pad" program is actually a shell script that runs the pad executable (which is named "padwish"), and then loads the Tcl files to run PadDraw. To access the Tcl interpreter, you must set a few environment variables, and then run padwish.
The environment variables to set are TCL_LIBRARY and TK_LIBRARY (which point to the Tcl/Tk run-time libraries), and PADHOME (which points to the Pad++ run-time library and the PadDraw application). Looking at the "pad" script will show you what to set these environment variables to. If the padwish executable you are using was built with Scheme, then you must also set the ELK_LOADPATH environment variable to point to the Elk runtime library.
Once you've run padwish, the Pad++ windowing shell, you can start writing your own applications, or you can run PadDraw by typing in the interpreter:
source $env(PADHOME)/draw/pad.tcl
Generated with Harlequin WebMaker