From 29ea3208b004f15dafa48ae29a75ba7f0c093a74 Mon Sep 17 00:00:00 2001 From: Michal Idziorek Date: Sun, 17 May 2015 17:14:07 +0200 Subject: working on vt52 layer --- video/console.c | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) (limited to 'video/console.c') 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) -- cgit v1.2.3