General Terminal

GtGetScreenWidth

Get the width for terminal screen dimensions

Syntax

Signature
int GtGetScreenWidth( void );

Arguments

No arguments.

Return value

The width in pixels of the WTUI screen, in the driver’s screen coordinate units.

Description

Read GtGetScreenHeight() for the other dimension. Use GtGetLogicalWidth() when you need the related measurement.

Example

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

#include <stdio.h>

int main( void )
{
   printf( "Terminal screen dimensions, width (pixels): %d\n", GtGetScreenWidth() );

   return 0;
}

See also