Syntax
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
#include "xdev-wtui.h"
#include <stdio.h>
int main( void )
{
printf( "Terminal depth (bits per pixel): %d\n", GtGetScreenDepth() );
return 0;
}