Syntax
int DispCount( void );
Arguments
No arguments.
Return value
The number of open display batches. Zero means no batch is open.
Description
Read the nesting depth of display batches. Each `DispBegin()` adds one level, and each matching `DispEnd()` removes one. A positive result means the outermost batch is still open, even if an inner batch has ended.
Example
#include "xdev-wtui.h"
#include "xdev-wtui-box.h"
#include <stdio.h>
int main( void )
{
DispBegin();
DispBegin();
DispBox( 1, 1, 5, 30, B_SINGLE, NULL );
SetPos( 3, 3 );
DispOut( "Buffered output", NULL );
printf( "Pending updates: %d\n", DispCount() );
DispEnd();
DispEnd();
Inkey( 0, NIL );
return 0;
}