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

Function gnome_display_nhwindow

outdated/win/gnome/gnbind.c:500–509  ·  view source on GitHub ↗

-- Display the window on the screen. If there is data pending for output in that window, it should be sent. If blocking is TRUE, display_nhwindow() will not return until the data has been displayed on the screen, and acknowledged by the user where appropriate. -- All calls are blocking in the tty window-po

Source from the content-addressed store, hash-verified

498 --more--, if necessary, in the tty window-port.
499*/
500void
501gnome_display_nhwindow(winid wid, BOOLEAN_P block)
502{
503 if (gnome_windowlist[wid].win != NULL) {
504 gtk_signal_emit(GTK_OBJECT(gnome_windowlist[wid].win),
505 ghack_signals[GHSIG_DISPLAY], block);
506 if (block && (gnome_windowlist[wid].type == NHW_MAP))
507 (void) gnome_nhgetch();
508 }
509}
510
511/* Destroy will dismiss the window if the window has not
512 * already been dismissed.

Callers 1

Calls 1

gnome_nhgetchFunction · 0.85

Tested by

no test coverage detected