cacaplay(1) General Commands Manual cacaplay(1)NAME
cacaplay - play libcaca files
SYNOPSIS
cacaplay [FILE]
DESCRIPTION
cacaplay plays libcaca animation files. These files can be created by any libcaca program by setting the CACA_DRIVER environment variable
to raw and storing the program's standard output.
If no file argument is provided or '-' is used, cacaplay will read its data from the standard input.
EXAMPLES
cacaplay file.caca
CACA_DRIVER=raw CACA_GEOMETRY=80x32 cacademo | cacaplay
SEE ALSO cacaserver(1)AUTHOR
This manual page was written by Sam Hocevar <sam@hocevar.net>.
libcaca 2006-11-10 cacaplay(1)
Check Out this Related Man Page
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)
HI,
I have a Fedora running box. I am not able to ping/login. I guess it got hanged.
Can any one help me how to login to that box with out restart? (8 Replies)
Hi all
Sorry this will turn out to be a long post since the code is kinda long.
I have a centos 4.x box running Blue Quartz management system. I manage like 70 virtual domains on this server. I asked this question at the Blue Quartz Forum site NuOnce Networks / Cobalt - BlueQuartz - CentOS... (1 Reply)
Hi all,
We have below WARNING in /var/adm/messages file from our Solaris server.
WARNING: /sbus@1f,0/SUNW,fas@e,8800000/sd@0,0 (sd0):
Error for Command: write(10) Error Level: Fatal
Requested Block: 16745265 Error Block: 16745269
Vendor: SEAGATE Serial Number:... (8 Replies)
This is the problem actually:
This regex:
egrep "low debug.*\".*\"" $dbDir/alarmNotification.log
is looking for data between the two quotation marks:
".*\"
When I hate data like this:
low debug 2009/3/9 8:30:20.47 ICSNotificationAlarm Prodics01ics0003 IC... (0 Replies)
HI
For the past 1 week i have been trying to include the concepts of parallel programming or thread in the sniffex.c code. Haven't been able to..
Please suggest sm appropriate modifications to the following code:
/*
* sniffex.c
*
* Sniffer example of TCP/IP packet capture using... (1 Reply)
Hi
I have a file with the following structure
"VATTENFALL GLOBAL" "Vattenfall Tray"
"BARCLAYS BANK LONDON" "Capula"
"P1 AGEAS GLOBAL COMPANY" "AAC - Optiver"
The requirement is like this
1) Take 2 input... (16 Replies)
So I have a space delimited file that I'd like to split into multiple files based on multiple column values.
This is what my data looks like
1bc9A02 1 10 1000 FTDLNLVQALRQFLWSFRLPGEAQKIDRMMEAFAQRYCQCNNGVFQSTDTCYVLSFAIIMLNTSLHNPNVKDKPTVERFIAMNRGINDGGDLPEELLRNLYESIKNEPFKIPELEHHHHHH
1ku1A02 1 10... (9 Replies)
Hi,
I like to intersect two files based on their first columns. Here is the code which does the trick for me:
awk 'NR==FNR{A;next}$1 in A' file1 file2
However, this only looks for exact matches between the two files in the first column. I need them to be printed even if part of the string... (10 Replies)
Hi
I want to create a shell script with the following awk command & also get the filenames in output.
awk '/<catetcsecuretty0>/ {p=1} /<catvarlogmessages0>/ {p=0} p' *.xml
As there will be multiple outputs related to many xml files I cannot identify which output belongs to which file
... (5 Replies)