getlin(const char *ques, char *input) -- Prints ques as a prompt and reads a single line of text, up to a newline. The string entered is returned without the newline. ESC is used to cancel, in which case the string "\033\000" is returned. -- getlin() must call flush_screen(1) before doing anything. -- This uses the
| 1474 | ports might use a popup. |
| 1475 | */ |
| 1476 | void |
| 1477 | mswin_getlin(const char *question, char *input) |
| 1478 | { |
| 1479 | logDebug("mswin_getlin(%s, %p)\n", question, input); |
| 1480 | if (mswin_getlin_window(question, input, BUFSZ) == IDCANCEL) { |
| 1481 | strcpy(input, "\033"); |
| 1482 | } |
| 1483 | } |
| 1484 | |
| 1485 | /* |
| 1486 | int get_ext_cmd(void) |
no test coverage detected