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

Function SetDialogPrompt

win/X11/dialogs.c:235–244  ·  view source on GitHub ↗

set the prompt. This is used to put error information in the prompt */

Source from the content-addressed store, hash-verified

233
234/* set the prompt. This is used to put error information in the prompt */
235void
236SetDialogPrompt(Widget w, String newprompt)
237{
238 Arg args[1];
239 Widget label;
240
241 label = XtNameToWidget(w, "prompt");
242 XtSetArg(args[0], nhStr(XtNlabel), newprompt);
243 XtSetValues(label, args, ONE);
244}
245
246/* get what the user typed; caller must free the response */
247String

Callers 2

X11_asknameFunction · 0.85
X11_getlinFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected