
Click above to get retro games delivered to your door ever month!
X-Hacker.org- FreshWin (c) Fresh Technologies - <b>printstr() video function</b>
[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
PRINTSTR() Video Function
Purpose..: Print a string on screen
-------------------------------------------------------------------------------
Syntax...: PrintStr( <nRow>, <nCol>, <cString> [, <uColor>] ) --> NIL
Arguments: <nRow> = row.
<nCol> = column.
<cString> = string to be printed on screen.
[<uColor>] = integer or usual color string
representing color attribute.
The integer formula is ...nFore + ( nBack * 16 ).
It will display in current color if not passed.
Returns..: NIL
Remark...: It is a high speed function to display a string
of any ASCII characters 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.
Source...: PRINTSTR.C
-------------------------------------------------------------------------------
Example..: The example will print the specified text
at co-ordinates 10, 20 in bright white on top
of magenta.
PrintStr( 10, 20, "Enter Name :", 165 )
See Also: PrintChr() ClrTable()
Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson