| 1 | Input terminated prematurely because inkey_active was set to 0 or another keyboard entry was active at the same time. |
| 9 | Input terminated by [Tab] |
| 13 | Input terminated by [Enter] |
| 27 | Input aborted by [Esc] |
| 72 | Input aborted by [Up] |
| 73 | Input aborted by [PgUp] |
| 80 | Input aborted by [Down] |
| 81 | Input aborted by [PgDn] |
| other | ASCII value of the pressed key. |
| STRING | String receives keyboard entry. |
| inkey_active | is set to 1 or 2 during entry. |
STRING* entry_str = " "; // long empty string
...
result = inkey(entry_str); // wait until [enter] pressed
if (result == 13) {
process_entry(entry_str);
}