From 7393db6692c861bc66164c0dd9b83f23a554775b Mon Sep 17 00:00:00 2001 From: Michal Idziorek Date: Wed, 26 Nov 2014 23:17:55 +0100 Subject: changes, improvements and cleanup --- video/console.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'video/console.c') diff --git a/video/console.c b/video/console.c index 5b6e103..743aaac 100644 --- a/video/console.c +++ b/video/console.c @@ -1,4 +1,5 @@ #include "console.h" +#include "kernel/spinlock.h" #include "kernel/config.h" //#define FOOLOS_CONSOLE @@ -109,11 +110,12 @@ void scr_nextline() void scr_put_char(char ch,char col) { + lock_spin(6); if(ch=='\n')scr_nextline(); else if(posx=SCR_WIDTH)scr_nextline(); #endif + lock_release(6); + } @@ -161,7 +165,7 @@ void scr_put_string(char *str) void scr_backspace() { if(posx==0)return; - print_char_col(posx-1,posy,'@',SCR_LGREEN); + print_char_col(posx-1,posy,' ',SCR_LGREEN); posx--; } -- cgit v1.2.3