General Terminal

GtGetViewMaxHeight

Get the reported maximum number of text rows

Syntax

Signature
int GtGetViewMaxHeight( void );

Arguments

No arguments.

Return value

The driver’s reported row limit.

Description

Some drivers report the current grid size as the view limit. Use GtGetDesktopRows() to estimate desktop capacity.

Example

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

#include <stdio.h>

int main( void )
{
   printf( "Maximum view dimensions, row count (rows): %d\n", GtGetViewMaxHeight() );

   return 0;
}

See also