Subj : Re: Display a long text file with pauses
To   : Gamgee
From : The Lizard Master
Date : Mon Dec 14 2020 08:23 pm

 Re: Re: Display a long text file with pauses
 By: Gamgee to The Lizard Master on Mon Dec 14 2020 05:23 pm

> Yep, you can do this with either a "Ctrl-A code" or an "@-code".
>
> Both are explained on the Wiki:
>
> http://wiki.synchro.net/custom:ctrl-a_codes#control
>
> http://wiki.synchro.net/custom:atcodes#terminal_information_control
>
> The "@-code" is probably easier.  Just embed a "@PAUSE@" (without the
> quotes) in your file at the appropriate place(s).

My fault I wasn't more clear.  It's a text file generated nightly.  I won't be able to add @ codes.  I thought maybe there was a displayfile(); function or something I could use to write it to the screen.

Right now I'm doing something like this -

       var lines=f.readAll();
       f.close();
       Unlock(f.name);
       dk.console.attr="G"
       dk.console.println(lines.join("\r\n"));

This works fine, but it comes out as one big dump and everyone has to scroll up to read the results.  Thanks!

---TLM

---
� Synchronet � Nite Eyes BBS - To make people happy about my tagline everywhere...