Lines Matching full:t_attrib
80 TextAttributes t_attrib;
170 TextAttributes t_attrib; /* currently active text attributes */
440 static void console_print_text_attributes(TextAttributes *t_attrib, char ch)
442 if (t_attrib->bold) {
447 if (t_attrib->uline) {
452 if (t_attrib->blink) {
457 if (t_attrib->invers) {
462 if (t_attrib->unvisible) {
468 printf(" fg: %d bg: %d ch:'%2X' '%c'\n", t_attrib->fgcol, t_attrib->bgcol, ch, ch);
473 TextAttributes *t_attrib)
483 console_print_text_attributes(t_attrib, ch);
486 if (t_attrib->invers) {
487 bgcol = color_table[t_attrib->bold][t_attrib->fgcol];
488 fgcol = color_table[t_attrib->bold][t_attrib->bgcol];
490 fgcol = color_table[t_attrib->bold][t_attrib->fgcol];
491 bgcol = color_table[t_attrib->bold][t_attrib->bgcol];
504 if (t_attrib->uline
517 if (t_attrib->uline
531 if (t_attrib->uline && ((i == FONT_HEIGHT - 2) || (i == FONT_HEIGHT - 3))) {
572 c->t_attrib = s->t_attrib_default;
618 &(c->t_attrib));
647 TextAttributes t_attrib = s->t_attrib_default;
648 t_attrib.invers = !(t_attrib.invers); /* invert fg and bg */
649 vga_putcharxy(s->ds, x, y, c->ch, &t_attrib);
651 vga_putcharxy(s->ds, x, y, c->ch, &(c->t_attrib));
681 &(c->t_attrib));
746 c->t_attrib = s->t_attrib_default;
783 s->t_attrib = s->t_attrib_default;
786 s->t_attrib.bold = 1;
789 s->t_attrib.uline = 1;
792 s->t_attrib.blink = 1;
795 s->t_attrib.invers = 1;
798 s->t_attrib.unvisible = 1;
801 s->t_attrib.bold = 0;
804 s->t_attrib.uline = 0;
807 s->t_attrib.blink = 0;
810 s->t_attrib.invers = 0;
813 s->t_attrib.unvisible = 0;
817 s->t_attrib.fgcol=COLOR_BLACK;
820 s->t_attrib.fgcol=COLOR_RED;
823 s->t_attrib.fgcol=COLOR_GREEN;
826 s->t_attrib.fgcol=COLOR_YELLOW;
829 s->t_attrib.fgcol=COLOR_BLUE;
832 s->t_attrib.fgcol=COLOR_MAGENTA;
835 s->t_attrib.fgcol=COLOR_CYAN;
838 s->t_attrib.fgcol=COLOR_WHITE;
842 s->t_attrib.bgcol=COLOR_BLACK;
845 s->t_attrib.bgcol=COLOR_RED;
848 s->t_attrib.bgcol=COLOR_GREEN;
851 s->t_attrib.bgcol=COLOR_YELLOW;
854 s->t_attrib.bgcol=COLOR_BLUE;
857 s->t_attrib.bgcol=COLOR_MAGENTA;
860 s->t_attrib.bgcol=COLOR_CYAN;
863 s->t_attrib.bgcol=COLOR_WHITE;
874 c->t_attrib = s->t_attrib_default;
926 c->t_attrib = s->t_attrib;
1262 (s->cells[src].t_attrib.fgcol << 12) |
1263 (s->cells[src].t_attrib.bgcol << 8) |
1264 (s->cells[src].t_attrib.bold << 21));
1538 s->t_attrib = s->t_attrib_default;
1545 s->t_attrib.bgcol = COLOR_BLUE;
1548 s->t_attrib = s->t_attrib_default;