write out character (and attribute) */
| 649 | |
| 650 | /* write out character (and attribute) */ |
| 651 | void |
| 652 | vesa_xputc(char ch, int attr) |
| 653 | { |
| 654 | int col, row; |
| 655 | |
| 656 | col = curcol; |
| 657 | row = currow; |
| 658 | |
| 659 | switch (ch) { |
| 660 | case '\n': |
| 661 | col = 0; |
| 662 | ++row; |
| 663 | break; |
| 664 | default: |
| 665 | vesa_WriteChar((unsigned char) ch, col, row, attr); |
| 666 | if (ch == '.') { |
| 667 | vesa_flush_text(); |
| 668 | } |
| 669 | if (col < (CO - 1)) |
| 670 | ++col; |
| 671 | break; |
| 672 | } /* end switch */ |
| 673 | vesa_gotoloc(col, row); |
| 674 | } |
| 675 | |
| 676 | #if defined(TILES_IN_GLYPHMAP) |
| 677 | /* Place tile represent. a glyph at current location */ |
no test coverage detected