chan names

Gives the names of the open channels.

chan names ?PATTERN?

Description

Gives the names of the channels of the interpreter, or the names that match the glob PATTERN, in no fixed order.

Arguments

ArgumentTypeDefaultDescription
PATTERNglob patternnoneA pattern for the names.

Returns

A list of channel names.

Examples

% lsort [chan names std*]
stderr stdin stdout

% chan names nomatch*

Errors

Each PATTERN is valid, and a pattern with no match gives an empty list.

Facts

Capability
channels. A new interpreter does not have it until the host turns it on.
Tcl release
Tcl 9.1 and 8.6.
Since
ztcl 1.0.0-beta.1

See also