From 64e8b3ece238eccb3ca69d3699c6937e12fde1c4 Mon Sep 17 00:00:00 2001 From: rswindell <> Date: Fri, 16 Aug 2019 21:32:23 +0000 Subject: [PATCH] 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 --- src/sbbs3/atcodes.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/sbbs3/atcodes.cpp b/src/sbbs3/atcodes.cpp index 791a5d7d1d..411fea1d9b 100644 --- a/src/sbbs3/atcodes.cpp +++ b/src/sbbs3/atcodes.cpp @@ -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 -- GitLab