Ignore:
Timestamp:
May 19, 2009, 2:52:10 AM (11 years ago)
Author:
Sam Hocevar
Message:

A lot of documentation updates here and there, including bugfixes dating
back to the libcucul merge.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/doc/tutorial.dox

    r2879 r3473  
    3939   nothing otherwise).
    4040 - Set the current canvas colours to black background and white foreground.
    41  - Write the string "This is a message" using the current colors onto the
    42    canvas.
    43  - Refresh the display.
    44  - Wait for an event of type "CACA_EVENT_KEY_PRESS".
     41 - Write the string \c "This is a message" onto the canvas, using the current
     42   colour pair.
     43 - Refresh the display, causing the text to be effectively displayed.
     44 - Wait for an event of type \c CACA_EVENT_KEY_PRESS.
    4545 - Free the display (release memory). Since it was created together with the
    4646   display, the canvas will be automatically freed as well.
    4747
    4848You can then compile this code on an UNIX-like system using the following
    49 comman (requiring pkg-config and gcc):
     49commans (requiring \c pkg-config and \c gcc):
    5050\code
    5151gcc `pkg-config --libs --cflags caca` example.c -o example
Note: See TracChangeset for help on using the changeset viewer.