Command waitkey

The command waitkey is used to wait for any key press on the device.

Example


In the example above the command waitkey pauses the code execution at that point and only the first display is displayed.

By pressing any key on the POS, the command waitkey will continue the code execution, clean the display and display the second message.

The last waitkey is used so that the application is not closed immediately after execution.