diff options
| author | Michal Idziorek <m.i@gmx.at> | 2014-11-13 02:41:21 +0100 |
|---|---|---|
| committer | Michal Idziorek <m.i@gmx.at> | 2014-11-13 02:41:21 +0100 |
| commit | c5052505356fb95db7c8ac8b4844c009da0e94b0 (patch) | |
| tree | fde5606a7f600197e1b4dfe93fd6eb042f792053 /video | |
| parent | 63b04ffc264aab5313811f1aa7ffc30715814e67 (diff) | |
added support for FOOLOS_CONSOLE_AUTOBREAK off
Diffstat (limited to 'video')
| -rw-r--r-- | video/console.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/video/console.c b/video/console.c index c89424b..856c313 100644 --- a/video/console.c +++ b/video/console.c @@ -107,9 +107,14 @@ void scr_nextline() void scr_put_char(char ch,char col) { - print_char_col(posx,posy,ch,SCR_WHITE); + if(ch=='\n')scr_nextline(); + else if(posx<SCR_WIDTH)print_char_col(posx,posy,ch,SCR_WHITE); posx++; + +#ifdef FOOLOS_CONSOLE_AUTOBREAK if(posx>=SCR_WIDTH)scr_nextline(); +#endif + } |
