Tk_InitConsoleChannels - nels
#include <tk.h> Tk_InitConsoleChannels(interp)
Tk Library Procedures Tk_InitConsoleChannels(3tk)
______________________________________________________________________________
NAME
Tk_InitConsoleChannels - Install the console channels as standard chan-
nels
SYNOPSIS
#include <tk.h>
Tk_InitConsoleChannels(interp)
ARGUMENTS
Tcl_Interp *interp (in) Interpreter in which the console chan-
nels are created.
______________________________________________________________________________
DESCRIPTION
Tk_InitConsoleChannels is invoked to create a set of console channels
and install them as the standard channels. All I/O on these channels
will be discarded until Tk_CreateConsoleWindow is called to attach the
console to a text widget.
This function is for use by shell applications based on Tk, like wish,
on platforms which have no standard channels in graphical mode, like
Win32.
The interp argument is the interpreter in which to create and install
the console channels.
NOTE: If this function is used it has to be called before the first
call to Tcl_RegisterChannel, directly, or indirectly through other
channel functions. Because otherwise the standard channels will be
already initialized to the system defaults, which will be nonsensical
for the case Tk_InitConsoleChannels is for.
ATTRIBUTES
See attributes(7) for descriptions of the following attributes:
+---------------+------------------+
|ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+---------------+------------------+
|Availability | runtime/tk-8 |
+---------------+------------------+
|Stability | Uncommitted |
+---------------+------------------+
SEE ALSO
console(n)
KEYWORDS
standard channels, console
NOTES
Source code for open source software components in Oracle Solaris can
be found at https://www.oracle.com/downloads/opensource/solaris-source-
code-downloads.html.
This software was built from source available at
https://github.com/oracle/solaris-userland. The original community
source was downloaded from https://source-
forge.net/projects/tcl/files/Tcl/8.6.7/tk8.6.7-src.tar.gz/download.
Further information about this software can be found on the open source
community website at https://www.tcl.tk/.
Tk 8.5
Tk_InitConsoleChannels(3tk)