Functions

MaxRow

Determine the maximum visible screen row

Syntax

Signature
int MaxRow( void );

Arguments

No arguments.

Return value

The last visible zero-based row index.

Description

Use the zero-based bottom edge to place a status line or bound a text rectangle. `MaxRow() + 1` is the current height in rows. Read it again after a resize or `SetMode()` when laying out the screen.

Example

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

#include <stdio.h>

int main( void )
{
   printf( "Screen height: %d rows\n", MaxRow() + 1 );

   return 0;
}