Skip to content
Snippets Groups Projects
Commit 6365250b authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Add TRUNCATE @-code to enable line truncation when too wide for user's terminal

parent 187b9ad4
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
Pipeline #3923 passed
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment