Up | TOC | Index | |||||
<< 7 Included Tools | < 8.44.2 Standard Library Memory Protection Constants | Up: 8 API Reference | 8.45.1 Routines > | 9 Release Notes >> |
8.44.3 Error Code Constants
8.44.3.1 BMP_SUCCESS
include std/graphcst.e namespace graphcst public enum BMP_SUCCESS
8.44.3.2 BMP_OPEN_FAILED
include std/graphcst.e namespace graphcst public enum BMP_OPEN_FAILED
8.44.3.3 BMP_UNEXPECTED_EOF
include std/graphcst.e namespace graphcst public enum BMP_UNEXPECTED_EOF
8.44.3.4 BMP_UNSUPPORTED_FORMAT
include std/graphcst.e namespace graphcst public enum BMP_UNSUPPORTED_FORMAT
8.44.3.5 BMP_INVALID_MODE
include std/graphcst.e namespace graphcst public enum BMP_INVALID_MODE
8.44.4 video_config sequence accessors
8.44.4.1 VC_COLOR
include std/graphcst.e namespace graphcst public enum VC_COLOR
8.44.4.2 VC_MODE
include std/graphcst.e namespace graphcst public enum VC_MODE
8.44.4.3 VC_LINES
include std/graphcst.e namespace graphcst public enum VC_LINES
8.44.4.4 VC_COLUMNS
include std/graphcst.e namespace graphcst public enum VC_COLUMNS
8.44.4.5 VC_XPIXELS
include std/graphcst.e namespace graphcst public enum VC_XPIXELS
8.44.4.6 VC_YPIXELS
include std/graphcst.e namespace graphcst public enum VC_YPIXELS
8.44.4.7 VC_NCOLORS
include std/graphcst.e namespace graphcst public enum VC_NCOLORS
8.44.4.8 VC_PAGES
include std/graphcst.e namespace graphcst public enum VC_PAGES
8.44.4.9 VC_SCRNLINES
include std/graphcst.e namespace graphcst public enum VC_SCRNLINES
8.44.4.10 VC_SCRNCOLS
include std/graphcst.e namespace graphcst public enum VC_SCRNCOLS
8.44.4.11 Colors
8.44.4.12 BLACK
include std/graphcst.e namespace graphcst public constant BLACK
8.44.4.13 BLUE
include std/graphcst.e namespace graphcst public constant BLUE
8.44.4.14 GREEN
include std/graphcst.e namespace graphcst public constant GREEN
8.44.4.15 CYAN
include std/graphcst.e namespace graphcst public constant CYAN
8.44.4.16 RED
include std/graphcst.e namespace graphcst public constant RED
8.44.4.17 MAGENTA
include std/graphcst.e namespace graphcst public constant MAGENTA
8.44.4.18 BROWN
include std/graphcst.e namespace graphcst public constant BROWN
8.44.4.19 WHITE
include std/graphcst.e namespace graphcst public constant WHITE
8.44.4.20 GRAY
include std/graphcst.e namespace graphcst public constant GRAY
8.44.4.21 BRIGHT_BLUE
include std/graphcst.e namespace graphcst public constant BRIGHT_BLUE
8.44.4.22 BRIGHT_GREEN
include std/graphcst.e namespace graphcst public constant BRIGHT_GREEN
8.44.4.23 BRIGHT_CYAN
include std/graphcst.e namespace graphcst public constant BRIGHT_CYAN
8.44.4.24 BRIGHT_RED
include std/graphcst.e namespace graphcst public constant BRIGHT_RED
8.44.4.25 BRIGHT_MAGENTA
include std/graphcst.e namespace graphcst public constant BRIGHT_MAGENTA
8.44.4.26 YELLOW
include std/graphcst.e namespace graphcst public constant YELLOW
8.44.4.27 BRIGHT_WHITE
include std/graphcst.e namespace graphcst public constant BRIGHT_WHITE
8.44.4.28 true_fgcolor
include std/graphcst.e namespace graphcst export sequence true_fgcolor
8.44.4.29 true_bgcolor
include std/graphcst.e namespace graphcst export sequence true_bgcolor
8.44.4.30 BLINKING
include std/graphcst.e namespace graphcst public constant BLINKING
Add to color to get blinking text
8.44.4.31 BYTES_PER_CHAR
include std/graphcst.e namespace graphcst public constant BYTES_PER_CHAR
8.44.4.32 color
include std/graphcst.e namespace graphcst public type color(object x)
8.44.5 Routines
8.44.5.1 mixture
include std/graphcst.e namespace graphcst public type mixture(object s)
Mixture Type
Comments:
A mixture is a {red, green, blue} triple of intensities, which enables you to define custom colors. Intensities must be from 0 (weakest) to 63 (strongest). Thus, the brightest white is {63, 63, 63}.
8.44.5.2 video_config
include std/graphcst.e namespace graphcst public function video_config()
Return a description of the current video configuration:
Returns:
A sequence, of 10 non-negative integers, laid out as follows:
- color monitor? -- 1 0 if monochrome, 1 otherwise
- current video mode
- number of text rows in console buffer
- number of text columns in console buffer
- screen width in pixels
- screen height in pixels
- number of colors
- number of display pages
- number of text rows for current screen size
- number of text columns for current screen size
Comments:
A public enum is available for convenient access to the returned configuration data:
- VC_COLOR
- VC_MODE
- VC_LINES
- VC_COLUMNS
- VC_XPIXELS
- VC_YPIXELS
- VC_NCOLORS
- VC_PAGES
- VC_SCRNLINES
- VC_SCRNCOLS
This routine makes it easy for you to parameterize a program so it will work in many different graphics modes.
Example:
vc = video_config() -- vc could be {1, 3, 300, 132, 0, 0, 32, 8, 37, 90}
See Also:
Color Set Selection
8.44.5.3 FGSET
include std/graphcst.e namespace graphcst public enum FGSET
Foreground ( text) set of colors
8.44.5.4 BGSET
include std/graphcst.e namespace graphcst public enum BGSET
Background set of colors