summaryrefslogtreecommitdiff
path: root/kernel/console.c
diff options
context:
space:
mode:
authorMichal Idziorek <m.i@gmx.at>2014-07-08 18:13:26 +0200
committerMichal Idziorek <m.i@gmx.at>2014-07-08 18:13:26 +0200
commit48bdc0e58fa036d6551fe216daaa6dbb390b8c82 (patch)
tree637ecedb3f96ceb8143c661901db89cefd2ff688 /kernel/console.c
parent0589f230c45e13a92fa903e14a645aa58a78df25 (diff)
some cleanup
Diffstat (limited to 'kernel/console.c')
-rw-r--r--kernel/console.c38
1 files changed, 19 insertions, 19 deletions
diff --git a/kernel/console.c b/kernel/console.c
index d5d4573..f17dbe3 100644
--- a/kernel/console.c
+++ b/kernel/console.c
@@ -1,11 +1,24 @@
-#include <stdint.h>
-
#include "console.h"
static int posx=0;
static int posy=0;
-void print_nextline()
+void scr_clear()
+{
+ int x,y;
+
+ for(x=0;x<SCR_WIDTH;x++)
+ for(y=0;y<SCR_HEIGHT;y++)
+ {
+ print_char_col(x,y," ",SCR_BLACK);
+
+ }
+
+ posx=posy=0;
+
+}
+//TODO
+void scr_nextline()
{
int i,x;
@@ -30,8 +43,9 @@ void print_nextline()
}
}
-void print_hex(uint16_t val)
+void scr_put_hex(uint16_t val)
{
+
int i;
print_char_col(posx,posy,'0',SCR_WHITE);
@@ -43,34 +57,20 @@ void print_hex(uint16_t val)
{
print_single_hex((val&0xf000)>>12);
val=val << 4;
-
}
}
-void print_string(char *str)
+void scr_put_string(char *str)
{
-
while(*str!=0)
{
print_char(posx++,posy,*(str++));
}
}
-void console_clear_screen()
-{
- int x,y;
- for(x=0;x<SCR_WIDTH;x++)
- for(y=0;y<SCR_WIDTH;y++)
- {
- print_char_col(x,y," ",SCR_BLACK);
-
- }
- posx=posy=0;
-
-}