Skip to content
Snippets Groups Projects
Commit 059ee95e authored by deuce's avatar deuce
Browse files

Don't make cputs() force curor update back on,

allow to stay off it it was off previously.
parent d04db1e1
No related branches found
No related tags found
No related merge requests found
...@@ -637,9 +637,11 @@ int ciolib_cputs(char *str) ...@@ -637,9 +637,11 @@ int ciolib_cputs(char *str)
{ {
int pos; int pos;
int ret=0; int ret=0;
int olddmc;
CIOLIB_INIT(); CIOLIB_INIT();
olddmc=dont_move_cursor;
dont_move_cursor=1; dont_move_cursor=1;
for(pos=0;str[pos];pos++) for(pos=0;str[pos];pos++)
{ {
...@@ -648,7 +650,7 @@ int ciolib_cputs(char *str) ...@@ -648,7 +650,7 @@ int ciolib_cputs(char *str)
ciolib_putch('\r'); ciolib_putch('\r');
ciolib_putch(str[pos]); ciolib_putch(str[pos]);
} }
dont_move_cursor=0; dont_move_cursor=olddmc;
ciolib_gotoxy(ciolib_wherex(),ciolib_wherey()); ciolib_gotoxy(ciolib_wherex(),ciolib_wherey());
return(ret); return(ret);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment