fbtext.h 688 B

12345678910111213141516171819
  1. /* Framebuffer text: draw characters into VESA LFB. 8x16 font, VGA attribute colors. */
  2. #ifndef FBTEXT_H
  3. #define FBTEXT_H
  4. void fbtext_init(void);
  5. int fbtext_active(void); /* 1 if using LFB, 0 if VGA text path */
  6. unsigned int fbtext_get_cols(void);
  7. unsigned int fbtext_get_rows(void);
  8. void fbtext_clear(void);
  9. void fbtext_put_char_at(unsigned int col, unsigned int row, unsigned char c, unsigned char attr);
  10. void fbtext_scroll_up_one_line(void);
  11. void fbtext_set_cursor(unsigned int col, unsigned int row);
  12. void fbtext_show_cursor(void);
  13. /* Hide cursor and redraw cell with (c, attr) so the character is restored. */
  14. void fbtext_hide_cursor(unsigned char c, unsigned char attr);
  15. #endif