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

Function tty_putsym

win/tty/wintty.c:2161–2192  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2159
2160#ifndef STATUS_HILITES
2161static void
2162tty_putsym(winid window, int x, int y, char ch)
2163{
2164 struct WinDesc *cw = 0;
2165
2166 HUPSKIP();
2167 if (window == WIN_ERR || (cw = wins[window]) == (struct WinDesc *) 0)
2168 ttywindowpanic();
2169
2170 print_vt_code2(AVTC_SELECT_WINDOW, window);
2171
2172 switch (cw->type) {
2173#ifndef STATUS_HILITES
2174 case NHW_STATUS:
2175#endif
2176#ifdef TTY_PERM_INVENT
2177 case NHW_PERMINVENT:
2178#endif
2179 case NHW_MAP:
2180 case NHW_BASE:
2181 tty_curs(window, x, y);
2182 (void) putchar(ch);
2183 ttyDisplay->curx++;
2184 cw->curx++;
2185 break;
2186 case NHW_MESSAGE:
2187 case NHW_MENU:
2188 case NHW_TEXT:
2189 impossible("Can't putsym to window type %d", cw->type);
2190 break;
2191 }
2192}
2193#endif
2194
2195static const char *

Callers 1

tty_putstrFunction · 0.85

Calls 2

tty_cursFunction · 0.85
impossibleFunction · 0.50

Tested by

no test coverage detected