flush - Flush buffered output for a channel
flush channelId
flush(1t) Tcl Built-In Commands flush(1t) ______________________________________________________________________________ NAME flush - Flush buffered output for a channel SYNOPSIS flush channelId ______________________________________________________________________________ DESCRIPTION Flushes any output that has been buffered for channelId. ChannelId must be an identifier for an open channel such as a Tcl stan- dard channel (stdout or stderr), the return value from an invocation of open or socket, 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. EXAMPLE Prompt for the user to type some information in on the console: puts -nonewline "Please type your name: " flush stdout gets stdin name puts "Hello there, $name!" ATTRIBUTES See attributes(7) for descriptions of the following attributes: +---------------+------------------+ |ATTRIBUTE TYPE | ATTRIBUTE VALUE | +---------------+------------------+ |Availability | runtime/tcl-8 | +---------------+------------------+ |Stability | Uncommitted | +---------------+------------------+ SEE ALSO file(n), open(n), socket(n), Tcl_StandardChannels(3) KEYWORDS blocking, buffer, channel, flush, nonblocking, output NOTES Source code for open source software components in Oracle Solaris can be found at https://www.oracle.com/downloads/opensource/solaris-source- code-downloads.html. This software was built from source available at https://github.com/oracle/solaris-userland. The original community source was downloaded from http://prdownloads.sourceforge.net/tcl/tcl- core8.6.7-src.tar.gz. Further information about this software can be found on the open source community website at https://www.tcl.tk/. Tcl 7.5 flush(1t)