X-Git-Url: https://scm.lunaixsky.com/lunaix-os.git/blobdiff_plain/e0ee3d449aacd33a84cb1f58961e55f9f06acb46..e776bb16043e55b91fdd3654f005dd8f00c9fb12:/lunaix-os/includes/lunaix/tty/tty.h diff --git a/lunaix-os/includes/lunaix/tty/tty.h b/lunaix-os/includes/lunaix/tty/tty.h index b470fdc..28ad83d 100644 --- a/lunaix-os/includes/lunaix/tty/tty.h +++ b/lunaix-os/includes/lunaix/tty/tty.h @@ -1,4 +1,6 @@ -typedef unsigned short vga_atrributes; +#ifndef __LUNAIX_TTY_H +#define __LUNAIX_TTY_H +typedef unsigned short vga_attribute; #define VGA_COLOR_BLACK 0 #define VGA_COLOR_BLUE 1 @@ -17,8 +19,38 @@ typedef unsigned short vga_atrributes; #define VGA_COLOR_LIGHT_BROWN 14 #define VGA_COLOR_WHITE 15 -void tty_set_theme(vga_atrributes fg, vga_atrributes bg); -void tty_put_char(char chr); -void tty_put_str(char* str); -void tty_scroll_up(); -void tty_clear(); \ No newline at end of file +void +tty_init(void* vga_buf); + +void +tty_set_buffer(void* vga_buf); + +void +tty_set_theme(vga_attribute fg, vga_attribute bg); + +void +tty_put_char(char chr); + +void +tty_put_str(char* str); + +void +tty_scroll_up(); + +void +tty_clear(); + +void +tty_clear_line(unsigned int y); + +void +tty_set_cpos(unsigned int x, unsigned int y); + +void +tty_get_cpos(unsigned int* x, unsigned int* y); + +vga_attribute +tty_get_theme(); + + +#endif /* __LUNAIX_TTY_H */