# Hot-Key Intercept Program (\*CONTROL)

> Source: https://manual.pvxplus.com/pxplus-system-programs-and-files/hot-key-intercept-program/overview

**\*CONTROL** is the hot-key intercept utility program. It is invoked internally by the PxPlus executive whenever a terminal input encounters a CTL value between -1 and -999. It processes the following:

| **CTL Value** | **Processing** |
| --- | --- |
| -1 | Calls the system utilities main menu \*U. |
| -2 | Prints the contents of the current screen. |
| -3 | Line-switch (on some systems). |
| -4 | Display current statistics. |
| -5 | Input field help (Calls \*HELP). |
| -6 | Input field query (Calls \*QUERY). |
| -7 | Program help (Calls \*HELP.PRG). |
| -8 | Resets screen. |
| -9 | *(Reserved for future usage.)* |
| -10 thru -999 | Calls the program $CTL *-nnn* ***where*** '*-nnn*' is the CTL value. Before calling this program, a new window consisting of the entire screen is created. It is dropped when the program returns. |

Once **\*CONTROL** has completed processing the **[CTL](https://manual.pvxplus.com/functions/ctl)** function, PxPlus will re-execute the **[INPUT](https://manual.pvxplus.com/directives/input)** (or **[OBTAIN](https://manual.pvxplus.com/directives/obtain)**) directive that initiated the process.

If the program reads raw data directly from the keyboard using the mnemonics **'[BI](https://manual.pvxplus.com/mnemonics/bi)'** or **'[ME](https://manual.pvxplus.com/mnemonics/me)'** or the directives **[READ RECORD](https://manual.pvxplus.com/directives/read-record)** or **[ACCEPT](https://manual.pvxplus.com/directives/accept)**, the program must call **\*CONTROL** to handle all CTL values between -1 and -999.

***Example:***

Read single character but detect hot-key call to system functions.
