Next | Prev | Up | Top | Contents | Index

Getting Started

Tcl Motif programs can be run with the moat (Motif and Tcl) interpreter. When called with no arguments, moat reads commands from standard input. When given a file name, moat reads commands from Tm-file, executes them, and then enters the main event loop:

moat Tm-file

The moat command is similar in concept to Tk's wishx windowing shell. See the moat(3) reference page for information about the Tm shell.

It is possible to run Tcl Motif scripts as standalone programs. Since the moat interpreter on IRIX is installed in /usr/sgitcl/bin, make this the first line of a Tcl Motif script:

#! /usr/sgitcl/bin/moat

Throughout this chapter, when InSight displays the line above in red, click it to run that sample program.


A Simple Example

Next | Prev | Up | Top | Contents | Index