first previous next last contents

Other Utility Commands

tkinit

tkinit

This command calls the Tk_Init C function. The purpose of this function is to allow the stash program to be used in a non windowing environment. To achieve this the initialisation of Tk has been delayed until this command is ran. Hence one binary can be used for both text work (no tkinit call) and graphics work (with a tkinit call).

capture

capture command ?varname?

This command executes command and stores any text written to stdout in the tcl variable named in varname. If varname is not specified then the output is returned, otherwise the return codes from the Tcl_Eval routine are used (ie TCL_OK for success).

For example the command "set x [capture {puts foo}]" and "capture {puts foo} x" both set x to contain "foo\n".



first previous next last contents
This page is maintained by staden-package. Last generated on 1 March 2001.
URL: http://www.mrc-lmb.cam.ac.uk/pubseq/manual/scripting_38.html