Functions

Row

Return the screen row position of the cursor

Syntax

Signature
int Row( void );

Arguments

No arguments.

Return value

The current zero-based cursor row.

Description

Read the zero-based row of the text cursor. Both console output and `SetPos()` can change it. Save `Row()` and `Col()` before temporary output and pass them to `SetPos()` to restore the position.

Example

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

#include <stdio.h>

int main( void )
{
   SetPos( 2, 10 );
   printf( "Row: %d\n", Row() );

   return 0;
}