1mNAME0m
       flush - Flush buffered output for a channel

1mSYNOPSIS0m
       1mflush 4m22mchannelId0m


1mDESCRIPTION0m
       Flushes any output that has been buffered for 4mchannelId24m.

       4mChannelId24m must be an identifier for an open channel such as a Tcl stan-
       dard channel (1mstdout 22mor 1mstderr22m), the return value from an invocation of
       1mopen 22mor 1msocket22m, or the result of a channel creation command provided by
       a Tcl extension.  The channel must have been opened for writing.

       If the channel is in blocking mode the command does  not  return  until
       all the buffered output has been flushed to the channel. If the channel
       is in nonblocking mode, the command may return before all buffered out-
       put  has  been flushed; the remainder will be flushed in the background
       as fast as the underlying file or device is able to absorb it.

1mEXAMPLE0m
       Prompt for the user to type some information in on the console:
              puts -nonewline "Please type your name: "
              1mflush 22mstdout
              gets stdin name
              puts "Hello there, $name!"


1mSEE ALSO0m
       file(n), open(n), socket(n), Tcl_StandardChannels(3)


1mKEYWORDS0m
