Skip to content
Snippets Groups Projects
Commit 64e8b3ec authored by rswindell's avatar rswindell
Browse files

Added new @-code FILL:text

fills the remaining portion of the current line with the specified text by
repeating the characters in text until reaching terminal columns - 1
parent e7993f67
Branches
Tags
No related merge requests found
...@@ -457,6 +457,13 @@ const char* sbbs_t::atcode(char* sp, char* str, size_t maxlen, long* pmode) ...@@ -457,6 +457,13 @@ const char* sbbs_t::atcode(char* sp, char* str, size_t maxlen, long* pmode)
return(nulstr); return(nulstr);
} }
if(strncmp(sp, "FILL:", 5) == 0) {
sp += 5;
while(*sp && online && column < cols - 1)
bputs(sp, P_TRUNCATE);
return nulstr;
}
if(strncmp(sp, "POS:", 4) == 0) { // PCBoard (nn is 1 based) if(strncmp(sp, "POS:", 4) == 0) { // PCBoard (nn is 1 based)
i = atoi(sp + 4); i = atoi(sp + 4);
if(i >= 1) // Convert to 0-based if(i >= 1) // Convert to 0-based
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment