A.2 Description

A.2.6 ktl ioctl option varname


Return information about the specified keyword (the information is returned as the command value).

ktl link must already have been used to link the service and keyword. Usually, varname is
the keyword name, but ktl link may have overridden this.

The currently supported options (a subset of those supported at the KTL level) are:
Options to the ktl ioctl command
NameDescription
aliasesreturn a list of the keyword's alias names
typereturn the keyword's data type, currently one of the strings double, float, int, bool, string and <unk> (for "unknown")
unitsreturn a list of the keyword's units strings

Returned lists are not enclosed in {} characters if they have only a single element. Use Tcl list-handling commands to operate on them.

For example:

ktk4.1% ktl link dcs2 secmove
secmove
ktk4.1% ktl ioctl aliases secmove
move-secondary
ktk4.1% ktl ioctl type secmove
bool
ktk4.1% ktl ioctl units secmove
no,yes
(the latter shows a deficiency in the cake library; the units strings should have been returned as {no yes})


Tcl/Tk/KTL Interface - 13 NOV 1996

Generated with Harlequin WebMaker

Back to the Keck Home Page