Subj : AnsiTerm.Js
To   : Uatu13
From : Digital Man
Date : Sun Jul 08 2018 03:16 pm

 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