Functions

DevOut

Write text at the cursor position

Syntax

Signature
void DevOut( 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 text to the terminal at the position set by `DevPos()` or `SetPos()`. The C function takes preformatted text and uses the same fixed-position drawing as `DispOut()`. A color supplied for the call applies to that write.

Example

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

int main( void )
{
   DevPos( 2, 5 );
   DevOut( "Invoice total", "W+/B" );

   Inkey( 0, NIL );

   return 0;
}