General Terminal

GtGetViewportHeight

Get the current viewport height in text rows

Syntax

Signature
int GtGetViewportHeight( void );

Arguments

No arguments.

Return value

The number of text rows in the current viewport.

Description

Use GtGetViewportWidth() for the column count. The two values describe the text grid.

Example

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

#include <stdio.h>

int main( void )
{
   printf( "Viewport dimensions, row count (rows): %d\n", GtGetViewportHeight() );

   return 0;
}

See also