Re: suppress output



Gary Wessle wrote:
dear tcl users

how can one suppress the output of the tcl prompt? googleing,
searching the docs did not help me much.

thank you

What exactly do you mean by that? The prompt only shows up interactively, and running interactively without a prompt seems highly unusual.

Can you describe your problem in any more detail than "how can one suppress the output of the tcl prompt"?

Taken literally, the answer to your question is probably to do this:

set ::tcl_prompt1 ""
set ::tcl_prompt2 ""

For the vast, vast majority of scripts this isn't necessary.

BTW, these variables are documented in the tclsh man page:

http://tmml.sourceforge.net/doc/tcl/tclsh.html

--
Bryan Oakley
http://www.tclscripting.com
.



Relevant Pages

  • Re: suppress output
    ... how can one suppress the output of the tcl prompt? ... searching the docs did not help me much. ... The prompt only shows up ...
    (comp.lang.tcl)
  • Re: Suppress Prompt
    ... Lynn wrote: ... active file. ... I would like to suppress the prompt that appears when ...
    (microsoft.public.word.vba.general)
  • Re: Enable automatic refresh prompt
    ... If you are talking about updating links, in xl2002 and earlier, you can ... either have the links update with no prompt or be prompted. ... in the workbook.Open command to suppress it. ...
    (microsoft.public.excel.programming)
  • Re: Enable automatic refresh prompt
    ... This data refresh it is prompting for is for ... > either have the links update with no prompt or be prompted. ... > code from another workbook, I don't believe displayalerts will suppress ... > in the workbook.Open command to suppress it. ...
    (microsoft.public.excel.programming)