12-01-2013
Last edited by Scott; 12-01-2013 at 08:59 AM..
Reason: Embedded video
10 More Discussions You Might Find Interesting
1. What is on Your Mind?
You will like this :)
fi4fzvQ6I-o (2 Replies)
Discussion started by: Neo
2 Replies
2. What is on Your Mind?
See How to use YouTube tags for instructions on how to post a video from YouTube.
While My Guitar Gently Weeps
by George Harrison and Friends
0ITrQXES8kU (16 Replies)
Discussion started by: Perderabo
16 Replies
3. What is on Your Mind?
This thread is a continuation of Post a Cool Music Video (Part I). See How to use YouTube tags for instructions on how to post a video from YouTube. And I will start things off with....
Throwing Fire At The Sun by Heather Nova
QXq44BPL-wo (11 Replies)
Discussion started by: Perderabo
11 Replies
4. What is on Your Mind?
This thread is a continuation of Post a Cool Music Video (Part I). See How to use YouTube tags for instructions on how to post a video from YouTube. And I will start things off with....
Operator by Jim Croce
A2iS8XctJKo (9 Replies)
Discussion started by: Perderabo
9 Replies
5. What is on Your Mind?
Grand Central Big Freeze
jwMj3PJDxuo
It looks as tho it's movie scene from M. Night Shyamalan :b: (0 Replies)
Discussion started by: sparcguy
0 Replies
6. What is on Your Mind?
This thread is a continuation of Post a Cool Music Video (Part I). See How to use YouTube tags for instructions on how to post a video from YouTube. And I will start things off with....
Beyond The Invisible by Enigma
hx2jrunyGjE (16 Replies)
Discussion started by: Perderabo
16 Replies
7. What is on Your Mind?
This thread is a continuation of Post a Cool Music Video (Part I). See How to use YouTube tags for instructions on how to post a video from YouTube. And I will start things off with....
Octavarium by Dream Theater
xK3qylwd-M0 (9 Replies)
Discussion started by: Perderabo
9 Replies
8. What is on Your Mind?
We post videos by linking them in from youtube. Videos from other sites are not absolutely forbidden, but we know that youtube won't tolerate videos that we won't tolerate. We have instructions on how to post youtube videos: How to use youtube tags. Please follow the format in those instructions to... (11 Replies)
Discussion started by: zxmaus
11 Replies
9. UNIX for Dummies Questions & Answers
i'm flex developer and i'm not familiar with this world. i need to make out of mp3, bitmaps , flv, text a music clip. can i do it with shell? can i use some video editing program on the server ?
thanks in advance. (0 Replies)
Discussion started by: sigalmaria
0 Replies
10. What is on Your Mind?
A few years ago we had a series of threads where we posted music videos. Let's try another one and see what happens. :)
We post videos by linking them in from youtube. Videos from other sites are not absolutely forbidden, but we know that youtube won't tolerate videos that we won't... (18 Replies)
Discussion started by: Perderabo
18 Replies
LEARN ABOUT DEBIAN
libcaca-tutorial
libcaca-tutorial(3caca) libcaca libcaca-tutorial(3caca)
NAME
libcaca-tutorial - A libcaca tutorial First, a very simple working program, to check for basic libcaca functionalities.
#include <caca.h>
int main(void)
{
caca_canvas_t *cv; caca_display_t *dp; caca_event_t ev;
dp = caca_create_display(NULL);
if(!dp) return 1;
cv = caca_get_canvas(dp);
caca_set_display_title(dp, 'Hello!');
caca_set_color_ansi(cv, CACA_BLACK, CACA_WHITE);
caca_put_str(cv, 0, 0, 'This is a message');
caca_refresh_display(dp);
caca_get_event(dp, CACA_EVENT_KEY_PRESS, &ev, -1);
caca_free_display(dp);
return 0;
}
What does it do?
o Create a display. Physically, the display is either a window or a context in a terminal (ncurses, slang) or even the whole screen (VGA).
o Get the display's associated canvas. A canvas is the surface where everything happens: writing characters, sprites, strings, images... It
is unavoidable. Here the size of the canvas is set by the display.
o Set the display's window name (only available in windowed displays, does nothing otherwise).
o Set the current canvas colours to black background and white foreground.
o Write the string 'This is a message' onto the canvas, using the current colour pair.
o Refresh the display, causing the text to be effectively displayed.
o Wait for an event of type CACA_EVENT_KEY_PRESS.
o Free the display (release memory). Since it was created together with the display, the canvas will be automatically freed as well.
You can then compile this code on an UNIX-like system using the following commans (requiring pkg-config and gcc):
gcc `pkg-config --libs --cflags caca` example.c -o example
Version 0.99.beta18 Fri Apr 6 2012 libcaca-tutorial(3caca)