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

Function curses_getlin

win/curses/cursmain.c:1164–1168  ·  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

1162 ports might use a popup.
1163*/
1164void
1165curses_getlin(const char *question, char *input)
1166{
1167 curses_line_input_dialog(question, input, BUFSZ);
1168}
1169
1170/*
1171int get_ext_cmd(void)

Callers

nothing calls this directly

Calls 1

curses_line_input_dialogFunction · 0.85

Tested by

no test coverage detected