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

Function vga_xputc

sys/msdos/vidvga.c:345–364  ·  view source on GitHub ↗

write out character (and attribute) */

Source from the content-addressed store, hash-verified

343
344/* write out character (and attribute) */
345void vga_xputc(char ch, int attr)
346{
347 int col, row;
348
349 col = curcol;
350 row = currow;
351
352 switch (ch) {
353 case '\n':
354 col = 0;
355 ++row;
356 break;
357 default:
358 vga_WriteChar((unsigned char) ch, col, row, attr);
359 if (col < (CO - 1))
360 ++col;
361 break;
362 } /* end switch */
363 vga_gotoloc(col, row);
364}
365
366#if defined(TILES_IN_GLYPHMAP)
367/* Place tile represent. a glyph at current location */

Callers 1

xputcFunction · 0.85

Calls 2

vga_WriteCharFunction · 0.85
vga_gotolocFunction · 0.85

Tested by

no test coverage detected