vga_getmodename(3) Svgalib User Manual vga_getmodename(3)NAME
vga_getmodename - return a name for the given video mode
SYNOPSIS
#include <vga.h>
char *vga_getmodename(int mode);
DESCRIPTION
A pointer to a static memory buffer is returned. Depending on mode it consist of a capital G followed by the amount of x pixels, followed
by a lower case x, followed by the amount of y pixels, followed by a lower case x. Finally the number of different colors is appended.
Here the shortcuts 32K,64K,16M, and 16M4 are used for 32768, 65536, and 16777216 are used. The last refers also to 16777216 which are store
in 4 bytes (highest address byte unused) for easier screen access.
For unsupported values of mode the empty string "" is returned. In general the string resembles the corresponding #define for the videomode
in #include <vga.h>.
EXAMPLE vga_getmodename(10) returns "G640x480x256".
SEE ALSO svgalib(7), vgagl(7), libvga.config(5), vgatest(6), vga_hasmode(3), vga_modeinfo(3), vga_setmode(3), vga_lastmodenumber(3), vga_getcurrent-
mode(3), vga_getdefaultmode(3), vga_getmodenumber(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 vga_getmodename(3)
Check Out this Related Man Page
vga_getmodenumber(3) Svgalib User Manual vga_getmodenumber(3)NAME
vga_getmodenumber - return a number for the given video mode
SYNOPSIS
#include <vga.h>
int vga_getmodenumber(char *name);
DESCRIPTION
The function parses *name and tries to find a videomode corresponding on it. *name is parsed case insensitive and should be either an
integer string just giving a mode number or consist of a capital G followed by the amount of x pixels, followed by a lower case x, followed
by the amount of y pixels, followed by a lower case x. Finally the number of different colors is appended. Here the shortcuts 32K,64K,16M,
and 16M4 are used for 32768, 65536, and 16777216 are used. The last refers also to 16777216 which are store in 4 bytes (highest address
byte unused) for easier screen access.
For unsupported values or the string "PROMPT" the value -1 is returned. Also a irritating error message is printed to stdout. This is used
during parsing the SVGALIB_DEFAULT_MODE environment variable. Probably it should not be used for anything else.
EXAMPLE
vga_getmodenumber("G640x480x256") returns 10.
SEE ALSO svgalib(7), vgagl(7), libvga.config(5), vgatest(6), vga_hasmode(3), vga_modeinfo(3), vga_setmode(3), vga_lastmodenumber(3), vga_getcurrent-
mode(3), vga_getdefaultmode(3), vga_getmodename(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.3.0 8 April 1998 vga_getmodenumber(3)
Hi all,
I want to create a new user and grant him ONLY transfer files access to a specific directory where he can only upload and read the files. He should be restricted to this activity only.
Regards (6 Replies)
Hi everyone,
I know the following questions are noobish questions but I am asking them because I am confused about the basics of history behind UNIX and LINUX.
Ok onto business, my questions are-:
Was/Is UNIX ever an open source operating system ?
If UNIX was... (21 Replies)
Hi,
Last 2 weeks I have searched many forums and i haven't found the answer for the question:
How to get all command output to Putty title?
Needed it for other programs to know when some jobs on a server is done and is it done right or wrong. Plink stdout and stdin wasn't working, i used many... (1 Reply)
anyone have any idea how do to this with auth_attr?
I suspect if I grant him
solaris.device.:RO::Device Allocation::help=DevAllocHeader.html
that will work but I'm unsure. Just looking for a second opinion. (10 Replies)
I am looking for a stable, reliable system to replace my current Windows systems in the home. These are simple systems that I purchased from the local Big Box store.
I have heard many good things about Unix and it's various children and it sounds like a good option to me. I have worked... (2 Replies)
We have a lot of scripts using cut as :
cut -c 0-8 --works for cut (GNU coreutils) 5.97, but does not work for cut (GNU coreutils) 8.4.
Gives error -
cut: fields and positions are numbered from 1
Try `cut --help' for more information.
The position needs to start with 1 for later... (6 Replies)
I've got a problem with a proxy configuration. We have an LDAP group that lists all users who are authorised to use the proxy to FTP (usually Filezilla) out to the world, and by implication those not in the group should be denied. My users are delighted that this has been enabled and those that... (9 Replies)
hi folks,
how to using tar with exclude directory and compress it using tar.Z
i only know how to exclude dir only with this command below:
tar -cvf /varios/restore/test.tar -X excludefile.txt /jfma/test1/
how to compress it using 1 command?
Thanx
Please use CODE tags as... (6 Replies)
Hello All,
I had recently learnt a bit of Docker(which provides containerization process).
Here are some of my learning points from it.
Let us start first with very basic question:
What is Docker:
Docker is a platform for sysadmins and developers to DEPLOY, DEVELOP and RUN applications ... (7 Replies)
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 for all,
I am testing the behavior of a 32 bit application running on Solaris 5.10 (SPARC), and realize it reaches 4GB of memory and then crashes.
It doesn't matter the amount of used memory as application is intended to perform many transactions; rather, what I want to achieve is to... (2 Replies)