1gl_printf(3)                  Svgalib User Manual                 gl_printf(3)
2
3
4

NAME

6       gl_printf - write formatted output in graphic mode
7
8

SYNOPSIS

10       #include <vgagl.h>
11
12       int gl_printf(int x, int y, const char *fmt, ...);
13
14

DESCRIPTION

16       gl_printf  writes, like printf(3) a formatted string to position (x, y)
17       using the currently selected font. If one or both of x and y  is  nega‐
18       tive,  the  text  printing  continues at the last position. The special
19       characters \b, \r, \n, \a, \t and \v have the usual effects.
20
21       Printing wraps at the screen borders. Nevertheless, behaviour is  unde‐
22       fined  if  not a single characters fits on the screen or if the initial
23       position is outside the screen.
24
25       The kind of text draw operation is set with gl_setwritemode(3).
26
27       BEWARE!  Prior to the of use of gl_printf(3) you must set a font.
28
29       A good default initialization sequence is:
30
31       gl_setfont(8, 8, gl_font8x8);
32       gl_setwritemode(FONT_COMPRESSED + WRITEMODE_OVERWRITE);
33       gl_setfontcolors(0, vga_white());
34
35

RETURN VALUE

37       The number of characters printed.
38
39

BUGS

41       For compatibility reasons this  function  is  not  contained  in  a.out
42       libraries.
43
44

SEE ALSO

46       printf(3),  svgalib(7),  vgagl(7),  gl_colorfont(3),  gl_expandfont(3),
47       gl_font8x8(3), gl_setfont(3), gl_setfontcolors(3),  gl_setwritemode(3),
48       gl_write(3), gl_writechar(3), printftest(6).
49
50

AUTHOR

52       This    function    and    manual    page    was    written   by   Trek
53       <trek00@freenet.hut.fi> <trek@mediaservice.net>.
54
55
56
57Svgalib 1.3.0                     22 Feb 1997                     gl_printf(3)
Impressum