General Terminal

GtSetScreenSize

Request a terminal screen size in pixels

Syntax

Signature
void GtSetScreenSize( int width, int height );

Arguments

width, height give the requested horizontal and vertical sizes in pixels.

Return value

No return value.

Description

The driver may adjust the requested size to match its window and text-cell constraints. Use SetMode() to request a size in rows and columns.

Example

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

#include <stdio.h>

int main( void )
{
   GtSetScreenSize( 720, 400 );
   printf( "Terminal screen: %d x %d\n", GtGetScreenWidth(), GtGetScreenHeight() );

   return 0;
}

See also