General Terminal

GtGetTitle

Read the window title

Syntax

Signature
const char *GtGetTitle( void );

Arguments

No arguments.

Return value

The current title string reported by the driver.

Description

The library replaces the returned text on the next call. Copy the text if it must remain available.

Example

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

#include <stdio.h>

int main( void )
{
   printf( "Window title: %s\n", GtGetTitle() );

   return 0;
}

See also