INTRODUCTION

Running Pad++

To run Pad++, simply type "pad" (assuming Pad++ has been properly installed.) This runs a demo application, PadDraw. PadDraw shows off many of Pad++'s abilities. It is written entirely in Tcl, and looking at its code is a good way to learn how to create Pad++ applications. There is currently no documention for PadDraw.

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

Pad++ Programmer's Guide - 10 JUN 1996

Generated with Harlequin WebMaker

Web Accessibility