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

Function gnome_getlin

outdated/win/gnome/gnbind.c:1087–1096  ·  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

1085 ports might use a popup.
1086*/
1087void
1088gnome_getlin(const char *question, char *input)
1089{
1090 int ret;
1091
1092 ret = ghack_ask_string_dialog(question, "", "nethack", input);
1093
1094 if (ret == -1)
1095 input[0] = 0;
1096}
1097
1098/*
1099int get_ext_cmd(void)

Callers

nothing calls this directly

Calls 1

ghack_ask_string_dialogFunction · 0.85

Tested by

no test coverage detected