General Terminal

GtGetDesktopRows

Get the number of text rows that fit on the desktop

Syntax

Signature
int GtGetDesktopRows( void );

Arguments

No arguments.

Return value

The desktop capacity in text rows.

Description

The driver measures the desktop in units of the current text cell height. Use GtGetDesktopCols() for the column capacity.

Example

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

#include <stdio.h>

int main( void )
{
   printf( "Desktop capacity, row count (rows): %d\n", GtGetDesktopRows() );

   return 0;
}

See also