General Terminal

GtSetFontClearBackground

Control clearing the text cell background

Syntax

Signature
void GtSetFontClearBackground( xBool on );

Arguments

on enables the setting with T or disables it with F.

Return value

No return value.

Description

Controls whether each cell background is cleared before the glyph is drawn. Check the resulting state with GtIsFontClearBackground().

Example

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

#include <stdio.h>

int main( void )
{
   xBool previous = GtIsFontClearBackground();

   GtSetFontClearBackground( T );
   printf( "Font Clear Background state: %s\n", GtIsFontClearBackground() ? "on" : "off" );
   GtSetFontClearBackground( previous );

   return 0;
}

See also