| 2073 | /* Make sure the user sees a text string when no windowing is available */ |
| 2074 | |
| 2075 | void |
| 2076 | amii_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 |
no test coverage detected