The KDrive translator allows you to embed KDrive color and cursor codes in your text files. KDrive was a door development kit for Turbo Pascal in the mid 1990s (since abandoned).
All codes begin with a control-P character (ASCII #16) followed by a character that identifies the type of command.
This translator is based on documentation included with versions 6.0, 6.01, 6.2 and 7.0 of the KDrive Door Game Tool Kit (copyright 1992 SHARKware). The kit itself has not been tested and therefore the codes implemented by this translator may not have the exact behavior as the original KDrive codes. For example, it is not known if the original kit used case-sensitive letters.
| Code | Length | Description |
| ^PBx | 3 | Changes the current background color. The color is specified in hexadecimal. |
| ^PCxx | 4 | Changes the current color. The color is specified in hexadecimal. |
| ^PFx | 3 | Changes the current foreground color. The color is specified in hexadecimal. |
| ^PP | 2 | Pauses the screen. |
| ^PW | 2 | Clears the screen. |
| ^PXxx | 4 | Changes the horizontal position (column) of the cursor. The column is specified as a decimal number padded to two digits (using a leading zero is necessary). |
| ^PYxx | 4 | Changes the vertical position (row) of the cursor. The row is specified as a decimal number padded to two digits (using a leading zero if necessary). |
KDrive supported three special codes to control the output of text. The ^P" code caused the output to be directed to the local sysop window (that is, visible on the server only). The ^P# performed the opposite and directed output to the remote system only. The ^P! code restored normal output to both systems. These codes are not supported by the BBS engine or its infrastructure.