int nhgetch() -- Returns a single character input from the user. -- In the tty window-port, nhgetch() assumes that tgetch() will be the routine the OS provides to read a character. Returned character _must_ be non-zero. */
| 1267 | Returned character _must_ be non-zero. |
| 1268 | */ |
| 1269 | int |
| 1270 | mswin_nhgetch() |
| 1271 | { |
| 1272 | PMSNHEvent event; |
| 1273 | int key = 0; |
| 1274 | |
| 1275 | logDebug("mswin_nhgetch()\n"); |
| 1276 | |
| 1277 | while ((event = mswin_input_pop()) == NULL || event->type != NHEVENT_CHAR) |
| 1278 | mswin_main_loop(); |
| 1279 | |
| 1280 | key = event->kbd.ch; |
| 1281 | return (key); |
| 1282 | } |
| 1283 | |
| 1284 | /* |
| 1285 | int nh_poskey(int *x, int *y, int *mod) |
no test coverage detected