Subj : AnsiTerm.Js
To   : All
From : Uatu13
Date : 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.

So then I tried this:

var ansi = load({}, 'ansiterm_lib.js');
ansi.send('ext_mode', 'set', 'no_bright_intensity');
ansi.send('attributes','set', ansi.BROWN);
console.print("testing");

The text shows up as brown, but then every .ans file on the BBS that should
have yellow in it shows as brown.

I hope this makes sense. I'm guessing that I need to somehow reset the
attributes or something after my code runs.

Aside from that, is there a better way to print colored text? Seems like a lot
of code and what if I wanted different colored words in the same print
statement?

Thanks.

-=U13=-

---
� Synchronet � The DarkSide of the Moon - telnet://darkside.synchro.net