MCPcopy Create free account
hub / github.com/NetHack/NetHack / mswin_getlin

Function mswin_getlin

outdated/sys/wince/mswproc.c:1476–1483  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

1474 ports might use a popup.
1475*/
1476void
1477mswin_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/*
1486int get_ext_cmd(void)

Callers 2

mswin_direct_commandFunction · 0.70
onListCharFunction · 0.70

Calls 2

logDebugFunction · 0.70
mswin_getlin_windowFunction · 0.70

Tested by

no test coverage detected