greset(3) — Unix Programmer’s Manual
NAME
greset - reset all global attributes to their initial values
SYNOPSIS
C
greset()
FORTRAN
subroutine greset
Pascal
procedure greset;
DESCRIPTION
The greset command returns the following global state variables to their initial values, and can be called at any time.
| state variable | initial value |
| available bitplanes | all bitplanes† |
| color | undefined |
| color map mode | one map |
| cursor | 0 (arrow)‡ |
| display mode | single buffer |
| font | 0 †† |
| linestyle | 0 (solid) |
| linestyle backup | off |
| linewidth | 1 pixel |
| picking size | 10×10 pixels |
| reset linestyle | on |
| RGB color | undefined |
| RGB writemask | undefined |
| texture | 0 (solid) |
| viewport | entire screen |
| writemask | all planes enabled† |
| zmax | 1023 |
| zmin | 0 |
† If there are more than three bitplane boards installed, available planes is set to twelve.
‡ The color and writemask of the cursor are set to 1.
†† Rasterfont 0 is a Helvetica-like font.
In addition, greset puts a two-dimensional orthographic projection transformation on the matrix stack with left, right, bottom, and top set to the boundaries of the screen. It also turns the cursor on, ties it to MOUSEX and MOUSEY, and unqueues all buttons, valuators, and the keyboard. Each button is set to FALSE and untied from valuators. Each valuator is set to XMAXSCREEN/2; the range is 0..XMAXSCREEN. MOUSEY is an exception. It is set to YMAXSCREEN/2 and has range 0..YMAXSCREEN.
Greset also defines every entry in the color map, as follows:
| index | name | RGB value | ||
| red | green | blue | ||
| 0 | BLACK | 0 | 0 | 0 |
| 1 | RED | 255 | 0 | 0 |
| 2 | GREEN | 0 | 255 | 0 |
| 3 | YELLOW | 255 | 255 | 0 |
| 4 | BLUE | 0 | 0 | 255 |
| 5 | MAGENTA | 255 | 0 | 255 |
| 6 | CYAN | 0 | 255 | 255 |
| 7 | WHITE | 255 | 255 | 255 |
| all others | unnamed | 0 | 0 | 0 |
SEE ALSO
ginit
NOTE
This command can only be used in immediate mode.
Silicon Graphics — R1c