Subj : Changing SyncTerm Display speed, and...
To   : Android8675
From : Digital Man
Date : Thu Mar 29 2018 05:51 pm

 Re: Changing SyncTerm Display speed, and...
 By: Android8675 to All on Thu Mar 29 2018 09:24 am

> So, trying to slow down my BBS from spitting out ANSI screens too quickly.

The simplest thing would be to convert it to a Ctrl-A/.ASC file using ans2asc
and use the -delay option:

-delay <interval> insert a 1/10th second delay code at output byte interval
                 (lower interval values result in more delays, slower display)

> I
> noticed eChicken has it setup to slow down SyncTerm during long draws and
> reset for menus. So I guess I'm wondering how he did it. I read that
> SyncTerm uses a VT500 ansi code to change speeds, but where do you insert
> that code?

You could put them in the .ans or .asc files, but you'd have to be sure to
reset/revert the speed setting too.

> Tried adding the code to .asc  (Ctrl-a) files, no go.
> Tried using console.putmsg('\e[0;8*r');, no luck.
> Maybe <ctrl-a>"9600b.ans and put the rate code in an ansi file? Seems
> redundant
>
> Code is <esc>[0;8*r where first number is 0, 1 or blank, and second number
> is speed 0 for unlimited through 9 I think for 115200
>
> So is my thinking correct, or is my execution wrong?

See exec/load/ansiterm_lib.js for a reference.

> Second Question...
>
> I want to make it so when players exit a door game it will ask the user if
> they want to display a high-score file.
>
> Wondering how I should build this so it can be easily added to any doorgame
> with a score file?
>
> I figured I'd want to use one of the .ini config files and have a
> [doorscores] section where you had:
>
> <door-int-code> = <url/filename to score file>
>
> If a line exists for the door being played, upon exit the user would be
> asked if they want to view the file.
>
> I'd also like to be able to see the score file on the website using
> something like ansilove.js. If the door has a score file, link it next to
> the game.
>
> So, help me out here. Should I just drop some new lines into xtrn_sec.js, or
> write my own addon and have it called after the door runs?
>
> bonus points if you help me get started.

Modding xtrn_sec.js seems to make the most sense there.

                                           digital man

Synchronet "Real Fact" #63:
"Baja" (name of Synchronet PCMS compiler/languege) is pronounced "ba-ha".
Norco, CA WX: 75.5�F, 29.0% humidity, 12 mph ENE wind, 0.00 inches rain/24hrs

---
� Synchronet � Vertrauen � Home of Synchronet � [vert/cvs/bbs].synchro.net