FT_WRTCHR()
Display character on screen
──────────────────────────────────────────────────────────────────────────────

Syntax

FT_WRTCHR( <nRow>, <nCol>, <cChar>, <nColor> ) -> NIL

Arguments

<nRow> and <nCol> are the screen coordinates.

<cChar> is the single character to print on the screen.

<nColor> is an integer representing the color attribute.
The formula is:

nFore + ( nBack * 16 )

Returns

NIL

Description

This is a high speed function to display a single ASCII character
on screen in a specified color attribute. This function is useful
for constructing screens with a lot of text or repetitive screen prints
where speed is important. It is faster and requires less memory than
FT_VIDSTR(). A working example is contained in ClrTable.Prg.

Examples

FOR nX = 1 to MaxRow()
FOR nY = 1 to MaxCol()
FT_PRNTCHR( nX, nY, "∙", (nX - 1)+(nY * 16) )
NEXT
NEXT

This example will write the ASCII character 249 to every location
on screen in every possible color combination. It will recognize
the status of SetBlink(). It uses direct video writes for speed.


Source: VIDEO1.C

Author: Robert A. DiFalco