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
| 1085 | ports might use a popup. |
| 1086 | */ |
| 1087 | void |
| 1088 | gnome_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 | /* |
| 1099 | int get_ext_cmd(void) |
nothing calls this directly
no test coverage detected