TIP: Click on subject to list as thread! ANSI
echo: sync_programming
to: GitLab note in main/sbbs
from: Eric Oulashin
date: 2023-04-04 14:47:00
subject: DDMsgReader: Added `index

https://gitlab.synchro.net/main/sbbs/-/merge_requests/278#note_3436

I saw that msglist.js had the msg_pmode() function, so I copied that to DDMsgReader.js:```function msg_pmode(pMsgbase, pMsgHdr){	var pmode = pMsgHdr.hasOwnProperty("is_utf8") && pMsgHdr.is_utf8 ? P_UTF8 : P_NONE;	if (pMsgHdr.from_ext !== "1")		pmode |= P_NOATCODES;	if (pMsgbase.cfg)	{		pmode |= pMsgbase.cfg.print_mode;		pmode &= ~pMsgbase.cfg.print_mode_neg;	}	return pmode;}```That's called on line 15672: retObj.pmode = msg_pmode(msgbase, pMsgHdr);For the scrollable interface (for ANSI), that value ends up getting passed to the scrollTextLines() function, as an optional parameter.  And then the pmode value is passed to console.print(), as on line 16923:`console.print(pTxtAttrib + pTxtLines[lineIdx], typeof(pmode) === "number" ? pmode|P_NOATCODES : P_NOATCODES);`
--- SBBSecho 3.20-Linux
                                                                                                
* Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)

SOURCE: echomail via QWK@pharcyde.org

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.