General Terminal

GtGetDesktopCols

Get the number of text columns that fit on the desktop

Syntax

Signature
int GtGetDesktopCols( void );

Arguments

No arguments.

Return value

The desktop capacity in text columns.

Description

The driver measures the desktop in units of the current text cell width. Use GtGetDesktopRows() for the row capacity.

Example

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

#include <stdio.h>

int main( void )
{
   printf( "Desktop capacity, column count (columns): %d\n", GtGetDesktopCols() );

   return 0;
}

See also