Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- FreshWin (c) Fresh Technologies - <b>printchr() video function</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
  PRINTCHR()                                                  Video Function
 Purpose..: Print a single character on screen
-------------------------------------------------------------------------------
 Syntax...: PrintChr( <nRow>, <nCol>, <cChar>[, <uColor>] ) --> NIL

 Arguments: <nRow>     = Row.
            <nCol>     = Column.
            <cChar>    = Single character to print on screen.
            [<uColor>] = Integer or usual color string
                         representing the color attribute.
                         The integer formula is ...nFore + ( nBack * 16 ).

 Returns..: NIL

 Remark...: It is a high speed function to display a single
            ASCII character on screen in a specified color
            attribute. The 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 PrintStr(). A working example is
            contained in the source to ClrTable().

 Source...: PRINTSTR.C
-------------------------------------------------------------------------------
 Example..: The example will write the ASCII character, 249,
            to every location on screen in every possible color
            combination. It will recognize the status of SetBlink().
            Like all of these functions, it uses direct video
            writes for speed.

                for nX = 0 to MaxRow()
                for nY = 0 to MaxCol()
                    PrintChr( nX, nY, ".", (nX - 1)+(nY * 16) )
                next
                next

See Also: PrintStr() ClrTable()

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