From e12e4508b8d1419a6664298f4e18379ec68be643 Mon Sep 17 00:00:00 2001 From: "Rob Swindell (on Debian Linux)" <rob@synchro.net> Date: Sun, 12 Mar 2023 17:36:21 -0700 Subject: [PATCH] Add TRUNCATE @-code to enable line truncation when too wide for user's terminal --- src/sbbs3/putmsg.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/sbbs3/putmsg.cpp b/src/sbbs3/putmsg.cpp index e5714ba89b..6b9df7cdd5 100644 --- a/src/sbbs3/putmsg.cpp +++ b/src/sbbs3/putmsg.cpp @@ -428,6 +428,11 @@ char sbbs_t::putmsgfrag(const char* buf, int& mode, int org_cols, JSObject* obj) mode |= P_WORDWRAP; return putmsgfrag(str+l, mode, org_cols); } + if(memcmp(str+l, "@TRUNCATE@", 10) == 0) { + l += 10; + mode |= P_TRUNCATE; + continue; + } if(memcmp(str+l, "@QON@", 5) == 0) { // Allow the file display to be aborted (PCBoard) l += 5; mode &= ~P_NOABORT; -- GitLab