HTBasic Help
×
Menu
Index

Print String

 
void kbdcrt_printstr( char *buf, int len );
 
Where:
 buf  - string pointer
 len  - string length
    0x1000000 - Raw character and color/attribute flag
 
Description
This routine writes a string to the scrollable Output Area buffer just like a PRINT statement. The characters are displayed at the current PRINT position using the current color and enhancement attributes. Control characters and enhancement and color characters (128-143) are handled just like during a PRINT.
 
If the Raw flag is set in the string length then the string contains two bytes for each display character. The character is in the first byte and the color and enhancement attributes are in the second byte. This format is the same as used by the kbdcrt_dispstr routine. The string is copied directly into the Output Area buffer and the characters are displayed with the specified color and enhancement attributes.
 
Example
kbdcrt_printstr( "This is a test", 14 );
See Also
kbdcrt_dispstr