diff options
| author | Michal Idziorek <m.i@gmx.at> | 2015-05-17 17:14:07 +0200 |
|---|---|---|
| committer | Michal Idziorek <m.i@gmx.at> | 2015-05-17 17:14:07 +0200 |
| commit | 29ea3208b004f15dafa48ae29a75ba7f0c093a74 (patch) | |
| tree | bc39ac9b187753e9a16dbac5bf9c2523b32097f9 /video/console.c | |
| parent | 819a4e871058f2dc4a2e255ecbe5a2c49cc8450c (diff) | |
working on vt52 layer
Diffstat (limited to 'video/console.c')
| -rw-r--r-- | video/console.c | 15 |
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) |
