# gnoclVTE.c File Reference

`#include "gnoclVTE.h"`

Go to the source code of this file.

## Functions
int | Gnoclvte_Init (Tcl_Interp *interp)

## Function Documentation

int Gnoclvte_Init | ( | Tcl_Interp * | interp | ) |

Definition at line 30 of file gnoclVTE.c.

References gnoclVTECmd.

    00031 {
    00032
    00033         printf ( "Initializing gnocl virtual terminal emulator version %s\n", VERSION );
    00034
    00035         if ( Tcl_InitStubs ( interp, "8.3", 0 ) == NULL )
    00036                 return TCL_ERROR;
    00037
    00038         if ( Tcl_PkgRequire ( interp, "Gnocl", VERSION, 0 ) == NULL )
    00039                 return TCL_ERROR;
    00040
    00041         if ( Tcl_PkgProvide ( interp, "GnoclVTE", VERSION ) != TCL_OK )
    00042                 return TCL_ERROR;
    00043
    00044         /* gnoclSourceViewCmd is located in sourceview.c */
    00045         Tcl_CreateObjCommand ( interp, "gnocl::vte", gnoclVTECmd, NULL, NULL );
    00046
    00047         return TCL_OK;
    00048 }