Auxiliary windows routines for the graph unit The wincrt unit provides some auxiliary routines for use with the graph unit, namely keyboard support. It has no connection with the crt unit, nor with the Turbo-Pascal for Windows WinCrt unit. As such, it should not be used by end users. Refer to the crt unit instead. Read a key from the keyboard

ReadKey reads a key from the keyboard, and returns the ASCII value of the key, or the scancode of the key in case it is a special key.

The function waits until a key is pressed.

The pressed key Check if a key was pressed. KeyPressed returns True if the user pressed a key, or False if not. It does not wait for the user to press a key. True if the user pressed a key, false if not. Pause program execution Delay stops program execution for the indicated number ms of milliseconds. Number of milliseconds to wait Set indicated text mode TextMode does nothing. Currently ignored Sound PC speaker Sound sounds the PC speaker. It emits a tone with frequency Hz for 500 milliseconds. (the time argument is required by the windows API) Frequency of sound Stop the speaker NoSound does nothing, windows does not support this. Direct video access On windows, this variable is ignored. Unused Is supposed to contain the last used video mode, but is actually unused.