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

Function amii_raw_print

sys/amiga/winfuncs.c:2075–2105  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2073/* Make sure the user sees a text string when no windowing is available */
2074
2075void
2076amii_raw_print(const char *s)
2077{
2078 int argc = 0;
2079
2080
2081 if (!s)
2082 return;
2083 if (amiIDisplay)
2084 amiIDisplay->rawprint++;
2085
2086 if (!Initialized) { /* Not yet screen open ... */
2087 puts(s);
2088 fflush(stdout);
2089 return;
2090 }
2091
2092 if (Initialized == 0 && WIN_BASE == WIN_ERR)
2093 init_nhwindows(&argc, (char **) 0);
2094
2095 if (amii_rawprwin != WIN_ERR)
2096 amii_putstr(amii_rawprwin, 0, s);
2097 else if (WIN_MAP != WIN_ERR && amii_wins[WIN_MAP])
2098 amii_putstr(WIN_MAP, 0, s);
2099 else if (WIN_BASE != WIN_ERR && amii_wins[WIN_BASE])
2100 amii_putstr(WIN_BASE, 0, s);
2101 else {
2102 puts(s);
2103 fflush(stdout);
2104 }
2105}
2106
2107/* Make sure the user sees a bold text string when no windowing
2108 * is available

Callers 1

amii_cleanupFunction · 0.85

Calls 3

putsFunction · 0.85
fflushFunction · 0.85
amii_putstrFunction · 0.85

Tested by

no test coverage detected