## Tcl9.0.3/Tk9.0.3 Documentation > Tk C API > CrtConsoleChan

### Tcl/Tk Applications | Tcl Commands | Tk Commands | [incr Tcl] Package Commands | SQLite3 Package Commands | TDBC Package Commands | tdbc::mysql Package Commands | tdbc::odbc Package Commands | tdbc::postgres Package Commands | tdbc::sqlite3 Package Commands | Thread Package Commands | Tcl C API | Tk C API | [incr Tcl] Package C API | TDBC Package C API

### NAME

Tk_InitConsoleChannels — 操作卓通信路を標準通信路として搭載する　 Install the console channels as standard channels

### SYNOPSIS

#include <tk.h>
Tk_InitConsoleChannels(interp)

### 引数 ARGUMENTS

Tcl_Interp *interp (入力in)
  操作卓通信路が生成される解釈実行機能｡　 Interpreter in which the console channels are created.

### 説明 DESCRIPTION

Tk_InitConsoleChannels は､制御卓通信路の組を作成し､標準通信路として実装する為に起動される｡この通信路上の全ての入出力は制御卓を文書部品に取付ける為に Tk_CreateConsoleWindow が呼ばれない限り遺棄される｡ 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.

この函数は､ Win32 のように画像様式内に標準通信路を有さないOS上の wish の様に Tk,に基いた対話形式応用譜によって使われる｡ 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.

interp 引数はその中で､制御卓通信路を作成し実装する解釈実行機能である｡ The interp argument is the interpreter in which to create and install the console channels.

註意: もしこの函数が使われる場合､ Tcl_RegisterChannel を直接か､他の通信路函数を通して間接的､に最初に呼ぶ前に呼ばれなければならない｡理由は､それ以外の場合には､標準通信路は先に系の省略時設定に初期化されることになる､それはその為の Tk_InitConsoleChannels がその場合に無意味になる｡ 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.

### SEE ALSO

console

### KEYWORDS

standard channels, console
Copyright © 2007 ActiveState Software Inc.