General Terminal

GtGetScreenDepth

Get the terminal color depth

Syntax

Signature
int GtGetScreenDepth( void );

Arguments

No arguments.

Return value

The terminal color depth in bits per pixel.

Description

Use this to report the color depth of the active screen renderer. Use GtGetDesktopDepth() to query the desktop.

Example

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

#include <stdio.h>

int main( void )
{
   printf( "Terminal depth (bits per pixel): %d\n", GtGetScreenDepth() );

   return 0;
}

See also