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