Version 1 of tcl_prompt1

Updated 2010-05-11 11:13:32 by LVwikignome

When tclsh is invoked interactively, it normally prompts for each command with % . You can change the prompt by setting the Tcl global variables tcl_prompt1 and tcl_prompt2. If variable tcl_prompt1 exists, then it must consist of a Tcl script to output a prompt; instead of outputting the % prompt, tclsh will evaluate the script in tcl_prompt1.

If you have a useful example of a tcl_prompt1 script, perhaps you might consider sharing it with us?


See also magic names.