Functions

DispOut

Write a value to the display

Syntax

Signature
void DispOut( const char *text, const char *color );

Arguments

text NUL-terminated text. NULL is treated as empty text.

color Color string for this call, or NULL to use the current color.

Return value

No return value.

Description

Write one UTF-8 string at the current text cursor. Output advances along the current row and stops at the right edge. Use `SetPos()` before drawing at a particular cell and `QOut()` for console output that starts a new line.

Pass a color pair for this write or `NULL` to use the current color. The C interface takes a string. Use `DispOutF()` to format numbers or other values as text before drawing them.

Example

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

int main( void )
{
   SetPos( 2, 5 );
   DispOut( "Ready", "GR+/B" );

   Inkey( 0, NIL );

   return 0;
}