MCPcopy Index your code
hub / github.com/NetHack/NetHack / print_vt_code

Function print_vt_code

win/tty/wintty.c:297–316  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

295static int vt_tile_current_window = -2;
296
297static void
298print_vt_code(int i, int c, int d)
299{
300 HUPSKIP();
301 if (iflags.vt_tiledata) {
302 if (c >= 0) {
303 if (i == AVTC_SELECT_WINDOW) {
304 if (c == vt_tile_current_window)
305 return;
306 vt_tile_current_window = c;
307 }
308 if (d >= 0)
309 printf("\033[1;%d;%d;%d%c", i, c, d, VT_ANSI_COMMAND);
310 else
311 printf("\033[1;%d;%d%c", i, c, VT_ANSI_COMMAND);
312 } else {
313 printf("\033[1;%d%c", i, VT_ANSI_COMMAND);
314 }
315 }
316}
317#else
318#define print_vt_code(i, c, d) /*empty*/
319#endif /* !TTY_TILES_ESCCODES */

Callers

nothing calls this directly

Calls 1

printfFunction · 0.85

Tested by

no test coverage detected