write out character (and attribute) */
| 343 | |
| 344 | /* write out character (and attribute) */ |
| 345 | void 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 */ |
no test coverage detected