home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / lib / tclX-6.4 / help / control / commandloop < prev    next >
Encoding:
Text File  |  1992-12-17  |  1.2 KB  |  23 lines

  1.  
  2.  
  3.           commandloop [prompt] [prompt2]
  4.                Create an interactive command loop for the current TCL
  5.                interpreter.  This command receives commands from stdin
  6.                and executes them.  It is useful TCL scripts that do
  7.                not normally converse interactively with a user through
  8.                a Tcl command interpreter, but which sometimes want to
  9.                enter this mode.
  10.  
  11.                Prompt is a Tcl command string that is evaluated to
  12.                determine the text of the prompt string.  Prompt2 is a
  13.                command string that is evaluated to determine the
  14.                ``downlevel prompt'', which is the prompt which is
  15.                issued for continuation input.  When the command
  16.                terminates, the variables for the prompt hooks will be
  17.                set to their old value.  If these arguments are not
  18.                specified, the prompt hooks use their current value.
  19.                Prompt hooks are TCL code that return as their result
  20.                the prompt to output.  The result of the last command
  21.                executed in the command string (which may be a return)
  22.                will be used as the prompt.
  23.