Re: Custom Scrollabe Text File Viewer
By: Nightfox to Codefenix on Wed Nov 06 2024 06:42 pm
Re: Custom Scrollabe Text File Viewer
By: Codefenix to Digital Man on Wed Nov 06 2024 06:05 pm
file_lines = convertAttrsToSyncPerSysCfg(txt.read() ).replace(/\f/g,
ConvertAttrsToSyncPerSysCfg() uses the configuration optoins from SCFG > Message Options > Extra Attribute Codes, which I think are specifically intended for messages posted in the message sub-boards. DM might correct me on this, but if you're making a general text file viewer, I'm wondering if it might make more sense to ignore those settings and just convert all attribute codes, or have your reader have its own settings for which attributes to convert.
The settings in SCFG->Message Options->Extra Attribute Codes actually impact the function of sbbs_t::putmsg() routine, used by printfile, menu and friends (and their JS equivalents), so not just message text.
--
digital man (rob)
Breaking Bad quote #35:
You ever smoke anything else, Wendy? Sausages don't count - ha ha - Hank Norco, CA WX: 60.6øF, 15.0% humidity, 3 mph NW wind, 0.00 inches rain/24hrs
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net