Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Nanforum Toolkit v2.1 Reference Guide - <b>ft_wrtchr()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 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

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson