Skip to content
Snippets Groups Projects
Commit 413e624f authored by rswindell's avatar rswindell
Browse files

New console control @-codes:

HOME - homes cursor (to upper left, 1:1)
CLRLINE - clears current line (cursor to column 1)
CLR2EOL - clears to end-of-current-line (doesn't move cursor)
CLR2EOS - clears to end of screen (doesn't move cursor)
parent 5bf12c0d
No related branches found
No related tags found
No related merge requests found
......@@ -660,6 +660,26 @@ const char* sbbs_t::atcode(char* sp, char* str, size_t maxlen)
return(nulstr);
}
if(!strcmp(sp,"HOME")) {
cursor_home();
return(nulstr);
}
if(!strcmp(sp,"CLRLINE")) {
clearline();
return(nulstr);
}
if(!strcmp(sp,"CLR2EOL")) {
cleartoeol();
return(nulstr);
}
if(!strcmp(sp,"CLR2EOS")) {
cleartoeos();
return(nulstr);
}
if(!strncmp(sp,"UP:",3)) {
cursor_up(atoi(sp+3));
return(str);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment