General Terminal

GtGetVersion

Get the terminal driver name

Syntax

Signature
const char *GtGetVersion( xBool full );

Arguments

full selects the full driver name with T or the short identifier with F.

Return value

The driver name as a library-owned string.

Description

Use the short identifier for diagnostics. A subsequent call replaces the returned buffer.

Example

gtgetversion.c
#include "xdev-wtui.h"

#include <stdio.h>

int main( void )
{
   printf( "Driver: %s\n", GtGetVersion( F ) );

   return 0;
}

See also