git://scm.lunaixsky.com
/
lunaix-os.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Implement APIC, RTC, basic ACPI parser and timer support
[lunaix-os.git]
/
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 c1a9a92a258fe9f11aa12db353532ff84f68f26e..28ad83d794211575c5e07b7133358ef02d51972a 100644
(file)
--- a/
lunaix-os/includes/lunaix/tty/tty.h
+++ b/
lunaix-os/includes/lunaix/tty/tty.h
@@
-1,3
+1,5
@@
+#ifndef __LUNAIX_TTY_H
+#define __LUNAIX_TTY_H
typedef unsigned short vga_attribute;
#define VGA_COLOR_BLACK 0
typedef unsigned short vga_attribute;
#define VGA_COLOR_BLACK 0
@@
-17,6
+19,12
@@
typedef unsigned short vga_attribute;
#define VGA_COLOR_LIGHT_BROWN 14
#define VGA_COLOR_WHITE 15
#define VGA_COLOR_LIGHT_BROWN 14
#define VGA_COLOR_WHITE 15
+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_set_theme(vga_attribute fg, vga_attribute bg);
@@
-30,4
+38,19
@@
void
tty_scroll_up();
void
tty_scroll_up();
void
-tty_clear();
\ No newline at end of file
+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 */