Name

fconfigure

fconfigure options

Perform operations on an I/O channel.

fconfigure channelId

Return current settings for channelId as a list of name-value pairs.

fconfigure channelId name

Return current setting of name for channel channelId.

fconfigure channelId name value...

Set one or more channel options for channelId.

Options

The command accepts the following standard options (other options are specific to certain types of I/O channels):

-blocking boolean

Set blocking or nonblocking I/O.

-buffering mode

Set I/O buffering mode to full, line, or none.

-buffersize size

Set size of I/O buffer, in bytes.

-eofchar char

Set character to indicate end of file (disable with empty string).

-eofchar {inChar outChar}

Set input and output end-of-file characters.

-translation mode

Set end-of-line translation to auto, binary, cr, lf, or crlf.

-translation {inMode outMode}

Set input and output line translation mode.

Get Tcl/Tk in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.