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
......@@ -457,6 +457,13 @@ const char* sbbs_t::atcode(char* sp, char* str, size_t maxlen, long* pmode)
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)
i = atoi(sp + 4);
if(i >= 1) // Convert to 0-based
......
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