Re: AnsiTerm.Jsã By: Uatu13 to All on Sat Jul 07 2018 10:18 pmãã > I just started messing around with JS, so this might be really simple, butã > I'm just not getting it.ã >ã > I'm running a test.js as an external Logon event.ã >ã > var ansi = load({}, 'ansiterm_lib.js');ã > ansi.send('attributes','set', ansi.BROWN);ã > console.print("testing");ã >ã > The text prints in SyncTerm as yellow instead of brown.ããHigh intensity brown is yellow - this is just how IBM-CGA worked.ããAnyway, the easiest way to change attributes is with color/attribute codes weãcall "Ctrl-A codes" (
http://wiki.synchro.net/custom:ctrl-a_codes), like so inãJS:ãprint("\1nThis is normal. \1rThis is red. \1hThis is bright-red.");ãã > So then I tried this:ã >ã > var ansi = load({}, 'ansiterm_lib.js');ã > ansi.send('ext_mode', 'set', 'no_bright_intensity');ããYeah, you probably don't want to do that. 1. It would only work inãCTerm/SyncTERM termiantes and 2. it's going to disable high-intensityãattributes for the entire session. :-)ãã digital manããSynchronet "Real Fact" #24:ã1584 Synchronet BBS Software registrations were sold between 1992 and 1996.ãNorco, CA WX: 98.3øF, 22.0% humidity, 10 mph E wind, 0.00 inches rain/24hrsã---ã þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.netã