summaryrefslogtreecommitdiff
path: root/video/console.c
diff options
context:
space:
mode:
Diffstat (limited to 'video/console.c')
-rw-r--r--video/console.c7
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
+
}