flush(8,n)(n) Tcl Built-In Commands flush(8,n)(n) NAME flush(8,n) - Flush buffered output for a channel SYNOPSIS flush(8,n) channelId DESCRIPTION Flushes any output that has been buffered for channelId. ChannelId must be an identifier for an open(2,3,n) channel such as a Tcl stan- dard channel (stdout or stderr), the return value from an invocation of open(2,3,n) or socket(2,7,n), 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(1,8) blocking mode the command does not return until all the buffered output has been flushed to the channel. If the channel is in(1,8) nonblocking mode, the command may return before all buffered out- put has been flushed; the remainder will be flushed in(1,8) the background as fast as the underlying file(1,n) or device is able to absorb it. SEE ALSO file(1,n)(n), open(2,3,n)(n), socket(2,7,n)(n), Tcl_StandardChannels(3) KEYWORDS blocking, buffer, channel, flush(8,n), nonblocking, output Tcl 7.5 flush(8,n)(n)