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 | |
| parent | 819a4e871058f2dc4a2e255ecbe5a2c49cc8450c (diff) | |
working on vt52 layer
Diffstat (limited to 'video')
| -rw-r--r-- | video/console.c | 15 | ||||
| -rw-r--r-- | video/console.h | 4 |
2 files changed, 16 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) diff --git a/video/console.h b/video/console.h index e9eff29..a89e0f5 100644 --- a/video/console.h +++ b/video/console.h @@ -1,5 +1,6 @@ #ifndef CONSOLEINT_H #define CONSOLEINT_H + // 80 x 24 // TODO: implement VT100 @@ -35,9 +36,12 @@ //autoscroll void scr_clear(); + + void scr_nextline(); void scr_backspace(); void scr_put_char(char ch,char col); void scr_put_string(char *str, char col); + #endif |
