Definition: |
any_key(string prompt="Press Any Key to continue...", integer con=1)
-- or -- maybe_any_key(string prompt="Press Any Key to continue...", integer con=1) |
Description: |
Display a prompt to the user and wait for any key.
prompt: Prompt to display, defaults to "Press Any Key to continue..." con: Either 1 (stdout), or 2 (stderr). Defaults to 1. |
Comments: |
These routines are provided for compatibility reasons only and are neither particularly recommended nor
officially supported (especially the maybe_any_key deliberate inconsistencies) on phix.
They wrap wait_key by giving a clue that the user should press a key. maybe_any_key only has any effect if the user is running under a GUI environment, and does not work consistently between different operating systems or operating system versions (as per the OpenEuphoria version). See builtins\panykey.e for the implementation details, should you want to modify things in any way, or for the basis of a better tested and more consistent application specific version. |
See Also: | wait_key |