Re: Custom Text File Viewer for SBBS?
By: Codefenix to Digital Man on Tue Nov 05 2024 10:30:26
DM>> echicken's AnsiView (xtrn/ansiview)?
Co> Nah, that only uses the printfile function to to a straight output of a
Co> selected file.
Co> contents in a frame and lets the user arrow or page up/down through it. It
Scrolling is the major flaw in frame.js, which is otherwise a pretty great library that I've done a lot with. It can get *very* slow when scrolling a lot of data. At the time I saw no real benefit over just using your terminal's scrollback, or at least it wasn't worth the trade-off, thus printfile.
I did create an alternative and it is *much* faster than frame.js at everything including scrolling:
https://gitlab.synchro.net/echicken/swindows
The recent rewrite of Bullshit is a fairly complete usage example. I have a couple other personal projects on the Synchronet gitlab server that use it.
The catch is that it's all written in TypeScript and I haven't bothered to publish a JS "build" of it, so you can't use it from plain JS at the moment (though this could be done).
echicken
electronic chicken bbs - bbs.electronicchicken.com
---
þ Synchronet þ electronic chicken bbs - bbs.electronicchicken.com