# Mnemonics

'GD' | Define Graphics Character Set

Definition

## Description

Use the 'GD' mnemonic to define the 11 characters that will be used in text mode line drawing operations. The standard line drawing characters are A to K (and for compatibility, 0 to 9 and colon) as defined below:

A or 2 |  | Top left corner
B or 3 |  | Top right corner
C or 4 |  | Bottom left corner
D or 5 |  | Bottom right corner
E or 0 |  | Horizontal line
F or 1 |  | Vertical line
G or : |  | Cross hairs
H or 6 |  | Vertical with horizontal right
I or 7 |  | Vertical with horizontal left
J or 8 |  | Horizontal with vertical up
K or 9 |  | Horizontal with vertical down

## Terminals

When using normal terminals, the 'GD' mnemonic should define the characters that are to be sent to the device in order to display the above line drawings. These will vary between devices; thus, you should consult your manufacturer should the defaults supplied with PxPlus not be satisfactory.

## Windows

On Windows, where drawing is done internally by PxPlus, each character consists of up to four lines (each line represented by a bit in the byte defined by 'GD'):

> $01$ - Horizontal line centered top to bottom in left half of cell
> $02$ - Vertical line centered left-right in top half of cell
> $04$ - Horizontal line centered top to bottom in right half of cell
> $08$ - Vertical line centered left-right in bottom half of cell

If 'GD' is not defined for the output, then $0C090603050A0F0E0B070D$ is the default. This conforms to the standard graphical character outputs as defined in the above table. The mnemonics 'GS' and 'GE' will not (and should not) be defined. If an output character is not defined by the 'GD' mnemonic, the cross hairs will be used.

For additional information regarding the use of special mnemonics (i.e. '@@', '*C', '*I', '*O', '*R', '*X', 'AT', 'GD', 'WX') when creating a device driver, see Dynamic Information in Mnemonics or Device Drivers.

## Example

mnemonic (FIL_NO)'GD'=$C9BBC8BCCDBACECCB9CACB$ ! For double-line graphics
mnemonic (FIL_NO)'GD'=$DABFC0D9C4B3C5C3B4C1C2$ ! For single-line graphics