# 'GD' Define Graphics Character Set

> Source: https://manual.pvxplus.com/mnemonics/gd

**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 | ![](https://manual.pvxplus.com/migration-assets/48c186d5307eb874fbf1d0c54ea0bcec8ebdaff3d7dea01e59a0c4a6dadaf542.png) | Top left corner |
| B *or* 3 | ![](https://manual.pvxplus.com/migration-assets/c27407d0299cb0eba55bc44e1eab0a60e78120c405ee25b507602383645354ec.png) | Top right corner |
| C *or* 4 | ![](https://manual.pvxplus.com/migration-assets/ed322ae9ac1550230cc5d5945e4b771d4ac8b8688fbbad3755a5d292802ea594.png) | Bottom left corner |
| D *or* 5 | ![](https://manual.pvxplus.com/migration-assets/40af05e289f996a8036c86d35ae14dbaa7d4253b05a671703da9564f3e85f979.png) | Bottom right corner |
| E *or* 0 | ![](https://manual.pvxplus.com/migration-assets/dd7e2e791771de63625ad289088ca11aceaafb6559bc58b17638b3d30d7a7acf.png) | Horizontal line |
| F *or* 1 | ![](https://manual.pvxplus.com/migration-assets/8d9a19ff75e67ffe1b35550505870eceb2ccf460d63635f9391401a2c3007716.png) | Vertical line |
| G *or* **:** | ![](https://manual.pvxplus.com/migration-assets/dec9c73d4de44a4cd353fc55ec89d6094a1c2a84786e15f6b6aed1b89667c9f0.png) | Cross hairs |
| H *or* 6 | ![](https://manual.pvxplus.com/migration-assets/4b1b2417e02a32df3d05523457704c91e163e9737102229e7bf220969a7aedba.png) | Vertical with horizontal right |
| I *or* 7 | ![](https://manual.pvxplus.com/migration-assets/ee9a3427aec3694db33d9090116615537f5c972aefcaa5ad9c4eff3a08b1d9b2.png) | Vertical with horizontal left |
| J *or* 8 | ![](https://manual.pvxplus.com/migration-assets/97e4dc5e353ffbc735162b4e2a6ac2da1c75444c27629ea608ba3ca98ef1dac6.png) | Horizontal with vertical up |
| K *or* 9 | ![](https://manual.pvxplus.com/migration-assets/28f391a87b3669ec14fbfdfa275fd21e5f7fa7e769aa6bacc5727732277ce782.png) | 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](https://manual.pvxplus.com/mnemonics/dynamic-information-in-mnemonics) or **[Device Drivers](https://manual.pvxplus.com/pxplus-user-guide/appendix-of-miscellaneous-topics/device-drivers/overview)**.

## Example

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