By: Nightfox to echicken on Sun Oct 13 2019 15:58:41
SlyVote as well. I use it mainly for displaying text messages to let the (frame.js seems to parse ANSI a little better), and I use frame.js in SlyVote as well. I use it mainly for displaying text messages to let the user scroll through it. I'm wondering if ScrollBox would be better for
If Frame is getting the job done already, it's probably not worth the switch. ScrollBox does not handle ANSI (and it would take a fair bit of effort to make it do so), so it might not be right for you.
ScrollBox takes a text file, string, or array of strings and presents it in a scrollable window. The window takes the full width of the terminal, but can be (almost) any height and start on (almost) any row. The paragraphs of the file or string, or the elements of the array, are rewrapped to the terminal width. You can scroll to or modify any paragraph from the source material as long as you know its original index. ScrollBox keeps a map of which paragraphs from the source occupy which row(s) in its window.
This was basically created to serve the needs of my Gopher client but with an eye to being reusable elsewhere. (The rewrapping, indexing, and on the fly transformation of text are crucial to being able to do lightbar-style navigation on content of arbitrary length and width.)
electronic chicken bbs - bbs.electronicchicken.com
þ Synchronet þ electronic chicken bbs - bbs.electronicchicken.com