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

Function gnome_putstr

outdated/win/gnome/gnbind.c:565–573  ·  view source on GitHub ↗

putstr(window, attr, str) -- Print str on the window with the given attribute. Only printable ASCII characters (040-0126) must be supported. Multiple putstr()s are output on separate lines. Attributes can be one of ATR_NONE (or 0) ATR_ULINE ATR_BOLD

Source from the content-addressed store, hash-verified

563 by calling more() or displaying both on the same line.
564*/
565void
566gnome_putstr(winid wid, int attr, const char *text)
567{
568 if ((wid >= 0) && (wid < MAXWINDOWS)
569 && (gnome_windowlist[wid].win != NULL)) {
570 gtk_signal_emit(GTK_OBJECT(gnome_windowlist[wid].win),
571 ghack_signals[GHSIG_PUTSTR], (guint) attr, text);
572 }
573}
574
575/* Display the file named str. Complain about missing files
576 iff complain is TRUE.

Callers 1

gnome_yn_functionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected