• Custom Text File Viewer for SBBS?

    From Codefenix@1:103/705 to All on Mon Nov 4 12:58:44 2024
    Has anyone ever made a custom text viewer for Synchronet with a scrolly interface? Thinking along the lines of something that lets users view text files with an interface similar to DDMessageReader's.

    I know there's Bullshit, which lets you define a specific set of text files in modopts. The thing I'd like would be more like a drop-in substitution for the console.printfile() function, or a loadable module that could be used in place of the stock text-dump for viewing files defined in the General Text Files section. Maybe it could have some basic functionality such as CTRL+F to find text strings, etc.

    I may try to come up with one, unless one already exists.

    |15 þ ù ú codefenix ú ù ú ConstructiveChaos BBS ú ú ù þ þ
    |08 þ þ ù (https/telnet/ssh)://conchaos.synchro.net ú ù þ
    |07

    ...Let him who takes the plunge remember to return it by Tuesday.
    ---
    þ Synchronet þ -=[ ConstructiveChaos BBS | conchaos.synchro.net ]=-
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Digital Man@1:103/705 to Codefenix on Mon Nov 4 12:01:16 2024
    Re: Custom Text File Viewer for SBBS?
    By: Codefenix to All on Mon Nov 04 2024 12:58 pm

    Has anyone ever made a custom text viewer for Synchronet with a scrolly interface? Thinking along the lines of something that lets users view text files with an interface similar to DDMessageReader's.

    echicken's AnsiView (xtrn/ansiview)?
    --
    digital man (rob)

    Synchronet/BBS Terminology Definition #89:
    UDP = User Datagram Protocol
    Norco, CA WX: 73.5øF, 16.0% humidity, 17 mph NW wind, 0.00 inches rain/24hrs --- SBBSecho 3.21-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From MRO@1:103/705 to Codefenix on Tue Nov 5 12:25:12 2024
    Re: Custom Text File Viewer for SBBS?
    By: Codefenix to Digital Man on Tue Nov 05 2024 10:30 am

    Re: Custom Text File Viewer for SBBS?
    By: Digital Man to Codefenix on Mon Nov 04 2024 12:01 pm

    echicken's AnsiView (xtrn/ansiview)?

    Nah, that only uses the printfile function to to a straight output of a selected file.

    I went ahead and started work on something that does what I want with a scrollbar interface. It takes a filepath as parameter and displays the contents in a frame and lets the user arrow or page up/down through it. It works, but I'm going to keep playing around with it. I can post it in Synchronet Javascript if anyone is interested.

    yeah go ahead and do that. might be useful to someone.
    i think the ansiview and bullshit stuff started with me making a request
    like you just did.

    ---
    þ Synchronet þ ::: BBSES.info - free BBS services :::
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From echicken@1:103/705 to Codefenix on Wed Nov 6 00:14:22 2024
    Re: Custom Text File Viewer for SBBS?
    By: Codefenix to Digital Man on Tue Nov 05 2024 10:30:26

    echicken's AnsiView (xtrn/ansiview)?

    Nah, that only uses the printfile function to to a straight output of a selected file.

    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
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)