getch, getch ignore caseThese two functions read one single character without need to push [Enter] and without the charactered echoed on the screen which is the case in the functions input quick() and input quick ignore case().
Indirect parameter passing is disabled.
0 or 1
| No. | Type | Description |
|---|---|---|
| Opt. 1 input |
string | Allowed characters Put all allowed characters into the string. Execution will only continue if the check is OK. |
| Type | Description |
|---|---|
| string | Entered character |
do
{
echo("Enter a character between 'a' and 'e'. 'x' = exit");
ch[] = getch ignore case( abcdex );
echo("Character entered: ", ch[] );
} while (ch[] <> X);
echo("Done.");