summaryrefslogtreecommitdiff
path: root/driver/console.c
diff options
context:
space:
mode:
Diffstat (limited to 'driver/console.c')
-rw-r--r--driver/console.c33
1 files changed, 16 insertions, 17 deletions
diff --git a/driver/console.c b/driver/console.c
index b6958c5..fcbf6e1 100644
--- a/driver/console.c
+++ b/driver/console.c
@@ -36,7 +36,6 @@ static void print_char_col(int x, int y, char c, char col)
// glue func for vt52 terminal
void console_put_char(uint8_t c,uint8_t color, uint32_t x, uint32_t y)
{
-
print_char_col(x,y,c, color);
}
//
@@ -132,22 +131,6 @@ static void scr_nextline()
#endif
}
-static void scr_put_char(char ch,char col)
-{
-
- if(ch=='\n')scr_nextline();
- else if(posx<SCR_WIDTH)
- {
- print_char_col(posx,posy,ch,col);
- posx++;
- }
-
-#ifdef FOOLOS_CONSOLE_AUTOBREAK
- if(posx>=SCR_WIDTH)scr_nextline();
-#endif
-
-}
-
/*
void scr_put_hex(uint16_t val)
{
@@ -178,6 +161,22 @@ void scr_put_hex32(uint32_t val)
}
*/
+static void scr_put_char(char ch,char col)
+{
+
+ if(ch=='\n')scr_nextline();
+ else if(posx<SCR_WIDTH)
+ {
+ print_char_col(posx,posy,ch,col);
+ posx++;
+ }
+
+#ifdef FOOLOS_CONSOLE_AUTOBREAK
+ if(posx>=SCR_WIDTH)scr_nextline();
+#endif
+
+}
+
static void scr_put_string(char *str, char col)
{
while(*str!=0)