gl_getpalettecolor(3) Svgalib User Manual gl_getpalettecolor(3)NAME
gl_getpalettecolor, gl_getpalettecolors, gl_getpalette - read the color palette
SYNOPSIS
#include <vgagl.h>
void gl_getpalettecolor(int c, int *r, int *g, int *b);
void gl_getpalettecolors(int s, int n, void *dp);
void gl_getpalette(void *dp);
DESCRIPTION
gl_getpalettecolor gets red, green and blue values (in the range 0 - 63) of color c from the color-lookup-table, and stores them as inte-
gers in the memory locations pointed to by r, g and b.
gl_getpalettecolors gets RGB values of n colors starting at s, which are stored as a table of groups of three bytes each at dp.
gl_getpalette is equivalent to getpalettecolors(0, 256, dp).
vga_ext_set(3) might change the range of the colors returned to 0 - 255.
SEE ALSO svgalib(7), vgagl(7), svgalib.conf(5), threedkit(7), testgl(1), vga_ext_set(3), gl_setpalette(3), gl_setpalettecolor(3), gl_setpalettecol-
ors(3).
AUTHOR
This manual page was edited by Michael Weller <eowmob@exp-math.uni-essen.de>. The exact source of the referenced demo as well as of the
original documentation is unknown.
It is very likely that both are at least to some extent are due to Harm Hanemaayer <H.Hanemaayer@inter.nl.net>.
Occasionally this might be wrong. I hereby asked to be excused by the original author and will happily accept any additions or corrections
to this first version of the svgalib manual.
Svgalib (>= 1.2.11) 2 Aug 1997 gl_getpalettecolor(3)
Check Out this Related Man Page
keyboard_init(3) Svgalib User Manual keyboard_init(3)NAME
keyboard_init, keyboard_init_return_fd - initialize the keyboard to raw mode
SYNOPSIS
#include <vgakeyboard.h>
int keyboard_init(void);
int keyboard_init_return_fd(void);
DESCRIPTION
These routines initialize the keyboard to raw mode. No ASCII codes are produced, instead svgalib keeps track of each single keypress or
depress. The return_fd version returns the file descriptor of the console device to allow you to do further tricks with it (though it is
unclear which). The other version just returns 0 if successful. Both return -1 on error.
keyboard_close(3) returns to normal operation.
When in raw keyboard mode you can no longer use vga_getch(3) or vga_getkey(3) but you must use keyboard_getstate(3) or keyboard_key-
pressed(3).
Depending on the setting of keyboard_translatekeys(3) even in raw mode a <Ctrl>-C will cause a SIGINT. In any case svgalib will check for
<Alt>-F1 - <Alt>-F10 and perform console switches accordingly.
SEE ALSO svgalib(7), vgagl(7), libvga.config(5), keytest(6), eventtest(6), keyboard_seteventhandler(3), keyboard_close(3), keyboard_update(3), key-
board_waitforupdate(3), keyboard_setdefaulteventhandler(3), keyboard_getstate(3), keyboard_clearstate(3), keyboard_translatekeys(3), key-
board_keypressed(3), vga_waitevent(3)AUTHOR
This manual page was edited by Michael Weller <eowmob@exp-math.uni-essen.de>. The exact source of the referenced function as well as of the
original documentation is unknown.
It is very likely that both are at least to some extent are due to Harm Hanemaayer <H.Hanemaayer@inter.nl.net>.
Occasionally this might be wrong. I hereby asked to be excused by the original author and will happily accept any additions or corrections
to this first version of the svgalib manual.
Svgalib (>= 1.2.11) 27 July 1997 keyboard_init(3)
Hello Everyone!
I am a newbie. I'd like to get key lines from a big txt file by Reg Exp, The file is nearly 22MB.
GREP or SED?which may be the best choice,more efficient way?
or any other best practise?
Thank you in advance.
Ever:) (5 Replies)
Hi running aix 6.1
oslevel
6100-07-03-1207
I need to confirm that this cron entry is set properly.
I need it set for every 5 min.
0,5,10,15,20,25,30,35,40,45,50,55 * * * * /path/to/script.sh
it does not appear that it is running every 5 min but it did in the beginning. (4 Replies)
Hey :) I am trying to understand the command goto.
I have some questions regarding the goto manual.
1.What does the underlined part mean?
I'm not allowed to type goto in the shell? But if goto is written into a file everything is okay?
2.So if a part of my file looks like this
...
goto... (8 Replies)
We just found out that the installation of DB/2 on a HACMP- (PowerHA-) Cluster running v7.1.3 is not possible due to a bug in HACMP. DB/2-version was 10.5 but this seems to apply to 10.1 too (and probably other versions as well).
The error message the DB/2-installer issues is something like:
... (2 Replies)
Dear all, will be thankful if you can help on sort command.
My data looks like (tab separated; number of columns 2317; N of rows ~200000):
a b c d V10 V2 V8 V4 V7
xx z y 1000 1 2 0 2 0
tr v m 1001 0 0 1 2 2
rg s ... (7 Replies)
Hi,
I am trying to build python(2.7.9) 64 bit from source on solaris10. Using the below to compile
./configure CFLAGS=-m64 LDFLAGS=-m64
But getting errors like below while executing make
make: Fatal error: Command failed for target `libinstall'
OS info:
isainfo -v
64-bit amd64... (9 Replies)
Hello there
so i have a txt file containing word like "one two three four plus four five six".
I want to save every word in the file into a variable, and then use that variable to generate real numbers and apply the arithmetic value on them.
example: the txt files becomes 123 + 456 and... (10 Replies)
Hello. I am looking for all the necessary packages required to be able to compile libXft.
I tried to compile libXft-2.1.8.2$ and the error message was:
checking for XRENDER... checking for XRENDER... checking for X... no
checking X11/extensions/Xrender.h usability... no
checking... (1 Reply)
Working on a new cybersecurity, dystopian world series and made a short 2 min teaser today.
Cyber Dystopia (720 HD)
https://www.youtube.com/watch?v=g9Ca07J_YC8
If anyone has any ideas for the story, please write out some story lines in the comments and join the production team! (1 Reply)
Hello my friends,
I've come across the weirdest of glitches.
I'm running a simple weather monitor (just temperature) on a Raspbeery Pi 3B (Raspbian Linux 4.14.98-v7+). It has a 3G modem that sends out simple packets to my server at home.
On june 5th I lost remote access to the device.... (1 Reply)
What is the point of this? Whenever I close my shell it appends to the history file without adding this. I have never seen it overwrite my history file.
# When the shell exits, append to the history file instead of overwriting it
shopt -s histappend (3 Replies)
Hello.
I'm new to bash script and I'm learning the basics by writing some scripts.
Recently a friend of mine asked me if I could try to write a script to him to automate a couple of processes that uses JSON RPCs.
I'll try to explain in few words the workflow just to contextualize the problem.... (48 Replies)
H Forum,
I was thankful in getting help from this post that allowed me to connect to multiple severs at once using here documents to gather data into variables. But I've discovered that the same bash command that works on my RHEL 7 servers do not work on RHEL 6? What's strange about my... (4 Replies)