summaryrefslogtreecommitdiff
path: root/video/console.c
diff options
context:
space:
mode:
Diffstat (limited to 'video/console.c')
-rw-r--r--video/console.c15
1 files changed, 12 insertions, 3 deletions
diff --git a/video/console.c b/video/console.c
index d53d2d7..c1b9c5c 100644
--- a/video/console.c
+++ b/video/console.c
@@ -6,15 +6,24 @@
static int posx=0;
static int posy=0;
-// helper_funcs
+// 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);
+}
+
+// helper_funcs
void print_char_col(int x, int y, char c, char col)
{
-#ifdef FOOLOS_CONSOLE
+
+ #ifdef FOOLOS_CONSOLE
char* video_mem=(char *)SCR_VIDEOMEM+(x+y*SCR_REAL_WIDTH)*2;
video_mem[0]=c;
video_mem[1]=col;
-#endif
+ #endif
+
}
void print_char(int x, int y, char c)