Syntax
int Col( void );
Arguments
No arguments.
Return value
The current zero-based cursor column.
Description
Read the zero-based column of the text cursor, which changes as output advances or `SetPos()` moves it. Use `Row()` with `Col()` to save a position before drawing elsewhere. `MaxCol()` gives the last visible column.
Example
#include "xdev-wtui.h"
#include <stdio.h>
int main( void )
{
SetPos( 2, 10 );
printf( "Column: %d\n", Col() );
return 0;
}