Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

get_color(3alleg4) [debian man page]

get_color(3alleg4)						  Allegro manual						get_color(3alleg4)

NAME
get_color - Retrieves the specified palette entry. Allegro game programming library. SYNOPSIS
#include <allegro.h> void get_color(int index, RGB *p); DESCRIPTION
Retrieves the specified palette entry. Example: RGB color; ... get_color(11, &color); SEE ALSO
get_palette(3alleg4), set_color(3alleg4) Allegro version 4.4.2 get_color(3alleg4)
Man Page

12 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Change the font of text in output file in shell scipt

hi, I want to change the font of text in output file. :( I tried the below code code: if awk 'BEGIN{if('$RSS'>='1000')exit 0;exit 1}' then RED=`echo "\033 i can see colors in terminal but not in output file :wall: please help me how i can get colors text in output file. edit... (1 Reply)
Discussion started by: sreelu
1 Replies

2. UNIX for Dummies Questions & Answers

Search throughout the file

Hi everyone, I am looking for some help here: I have some files with this standard: H10 123456 abcdefghij 789timestamp 00000000 L10 2929292 98992 92929818xxxx x1x2x3 L30 93939393 9292 838383 83838383 getSTATUS I need to put like this... (2 Replies)
Discussion started by: snakesjc
2 Replies

3. Shell Programming and Scripting

Loop using "for" or ???

What I need to do is run a command 32 times; each command needs to have the slave and target specified. Some one decided on a goofy naming convention and there are 4 instances of the target on 8 slaves. Skeleton of the command is: execute.lng Slave01 Target01-A execute.lng Slave01... (3 Replies)
Discussion started by: QuinCE
3 Replies

4. OS X (Apple)

[Solved] links2 --enable-graphics from source, configure error: no graphics driver found.

Howdy I am trying to install links2 with graphics support on snow leopard 10.6.8 (xcode installed). I have had the program running last year, also installed from source - but then I had installed some image libraries with mac ports and fink - cannot reproduce that setup. Plus I would like to not... (6 Replies)
Discussion started by: butterbaerchen
6 Replies

5. Shell Programming and Scripting

[Perl + Gtk2] Image disappears after scrolling / minimizing window

Hello everyone I don't know if it's the right place to ask, but I will try. I want to use Gtk2 in my Perl chart-drawing script, I found a sample code that could be very useful for me somewhere, but I noticed there is one problem with that - when I draw something, and then scroll the window or... (0 Replies)
Discussion started by: xqwzts
0 Replies

6. Shell Programming and Scripting

color print using perl

Hi i want to print the text in different color using perl script. i am able to print on console(terminal). but if i try to print the same into a file, i am not able to do color.pl #!/bin/usr/perl use Term::ANSIColor; print "This text is normal.\n"; use Term::ANSIColor qw(:constants);... (3 Replies)
Discussion started by: roopa
3 Replies

7. Shell Programming and Scripting

Format CSV file from a shell script

I have a shell script which creates a CSV files. there are 3 fields, field1, field2 and comp. I will generates the values for field1 and field2 and Want to compare both. If field1>filed2 then comp should be success written in green in CSV file, else it should fail in red color. How can I change the... (5 Replies)
Discussion started by: sauravrout
5 Replies

8. UNIX for Dummies Questions & Answers

How to add '--color' with pipes?

Hi guys - I was wondering if there is a way to add 'color' to a grep I do like this below: fgrep -i "XYZ-1124354-P" mylog.log | tr "\001" " " | sed G (7 Replies)
Discussion started by: DallasT
7 Replies

9. Shell Programming and Scripting

[BASH] Performance question - Script to STDOUT

Hello Coders Some time ago i was asking about python and bash performances, and i was told i could post the regarding code, and someone would kindly help to make it faster (if possible). If you have noted, i'm on the way to finalize, finish, stable TUI - Text(ual) User Interface. It is a... (6 Replies)
Discussion started by: sea
6 Replies

10. Shell Programming and Scripting

Search and retreive after matched words

I have following source file format {"driver":{"first_name":"xxxx","last_name":"yyyy"},"confirmation_id":"US285204420","vendor":{"id":"1234","name":"BUDGET"}} I need to extract the data from above and provide in below desired output is xxxx,yyyy,US285204420,1234,BUDGET Can you please... (11 Replies)
Discussion started by: nqp200
11 Replies

11. Shell Programming and Scripting

Not getting colorcode when excuting html in UNIX

Hi i have below code which i am running and the out i want should be in red color echo "<html>" >> ERROR_FILE.html echo "<Body>" >> ERROR_FILE.html nawk 'BEGIN{print "<table border="1">"} {print "<tr>"; print "<TD colspan="0" bgcolor="#DC143C">"; for(i=1;i<NF;i++)... (5 Replies)
Discussion started by: mirwasim
5 Replies

12. UNIX for Beginners Questions & Answers

Lower ASCII characters.

Hi, I'm writing a BBS telnet program. I'm having issues with it not displaying lower ASCII characters. For example, instead of displaying the "smiley face" character (Ctrl-B), it displays ^B. Is this because i'm using Ncurses? If so, is there any way around this? Thanks. (3 Replies)
Discussion started by: ignatius
3 Replies