> If you are on a *nix box with Tcl install (including Mac OSX), try: man n <cmd>
>
> For example: man n foreach
I've been using the tcl and tk man pages for ages. The call above does
not work on my systems as it is written here, because the first argument
"n" of the command refers to a section of man pages that does not exist.
I've just tested it across machines running different Linux
distributions I have direct or ssh access to, and I found that the
manpage section naming is distribution-dependent:
On Debian and Ubuntu systems:
$ man n lsearch
No manual entry for lsearch in section n
$ man 3tcl lsearch
(that works)
$ man 3t lsearch
(also works, abbreviated section name)
On a Fedora box:
$ man n lsearch
(that works)
$ man 3tcl lsearch
No manual entry for lsearch in section 3t
$ man 3t lsearch
No manual entry for lsearch in section 3tcl
Sometimes (e.g. for Tk procedures like text or checkbutton) it is
possible to leave out the section name at all, but in the case of "man
lsearch", a documentation on a C routine named "lsearch" is displayed;
you need to avoid that by specifying the Tcl manpages section.
By the way, there is no need to google each time for the HTML versions
of the Tcl/Tk manpages: Go to
http://tcl.tk -> "DOCUMENTATION" tab ->
one of the 'Quick links' ("Tcl 8.6 (beta)", "Tcl 8.5", or "Tcl 8.4
Docs") [maybe bookmark the resulting page...], and you will find nice
directories of Tcl and Tk commands that will also help you find out if
there exists a (core only) widget to achieve what you want.
Best regards
Tibor Stolz