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

Disable Celerity "pipe code" parsing when displaying ".rip" files

RIP sequences conflict with Celerity pipe codes, so don't convert them to
color codes (even when enabled in SCFG->Systems->Extra Attribute Codes...).

We *used* to disable all pipe code parsing when sending to a RIP-enabled
terminal but since we don't do that any longer, this is a better/cleaner fix.

Renegade "pipe codes" (|xx where xx are decimal digits) don't "seem" to
conflict with any RIP sequences (so leave that parsing enabled for .rip files)
but Deuce can help me to be sure about that (please).
parent 90b95db7
No related branches found
No related tags found
No related merge requests found
Pipeline #8846 passed
......@@ -79,6 +79,9 @@ bool sbbs_t::printfile(const char* inpath, int mode, int org_cols, JSObject* obj
if (!(mode & P_NOXATTRS))
mode |= (cfg.sys_misc & SM_XATTR_SUPPORT) << P_XATTR_SHIFT;
if (rip) // Let's not eat the pipe codes used in RIP files
mode &= ~(P_CELERITY);
if ((stream = fnopen(&file, fpath, O_RDONLY | O_DENYNONE)) == NULL) {
if (!(mode & P_NOERROR)) {
lprintf(LOG_NOTICE, "!Error %d (%s) opening: %s"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment