Functions

DispBegin

Begin buffering screen output

Syntax

Signature
void DispBegin( void );

Arguments

No arguments.

Return value

No return value.

Description

Open a display batch when several drawing calls should appear together, such as a frame, its labels and its buttons. The calls update the screen buffer while the driver defers presentation. Batches can nest. Pair each `DispBegin()` with `DispEnd()`.

Example

dispbegin.c
#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;
}