Commit 43e643e9 authored by rswindell's avatar rswindell
Browse files

Using new console abstraction functions (e.g. cursor_left, cleartoeol).

parent e3764692
......@@ -53,16 +53,19 @@ void sbbs_t::redrwstr(char *strin, int i, int l, long mode)
else
rputs(str);
if(useron.misc&ANSI) {
bputs("\x1b[K");
cleartoeol();
if(i<l)
bprintf("\x1b[%dD",l-i); }
else {
while(c<79) { /* clear to end of line */
cursor_left(l-i);
} else {
while(c<cols-1) { /* clear to end of line */
outchar(SP);
c++; }
c++;
}
while(c>l) { /* back space to end of string */
outchar(BS);
c--; } }
c--;
}
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment