int gl_printf(int x, int y, const char *fmt, ...);
DESCRIPTIONgl_printf writes, like printf(3) a formatted string to position (x, y) using the currently selected font. If one or both of x and y is negative, the text printing continues at the last position. The special characters \b, \r, \n, \a, \t and \v have the usual effects.
Printing wraps at the screen borders. Nevertheless, behaviour is undefined if not a single characters fits on the screen or if the initial position is outside the screen.
The kind of text draw operation is set with gl_setwritemode(3).
BEWARE! Prior to the of use of gl_printf(3) you must set a font.
A good default initialization sequence is:
gl_setfont(8, 8, gl_font8x8);
gl_setwritemode(FONT_COMPRESSED + WRITEMODE_OVERWRITE);
RETURN VALUEThe number of characters printed.
BUGSFor compatibility reasons this function is not contained in a.out libraries.