• Custom Text File Viewer for SBBS?

    From Codefenix@VERT/CONCHAOS to All on Mon Nov 4 12:58:45 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 ]=-
  • From Digital Man@VERT to Codefenix on Mon Nov 4 12:01:17 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

    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net
  • From Codefenix@VERT/CONCHAOS to Digital Man on Tue Nov 5 10:30:26 2024
    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.

    |15 ■ ∙ · codefenix · ∙ · ConstructiveChaos BBS · · ∙ ■ ■
    |08 ■ ■ ∙ (https/telnet/ssh)://conchaos.synchro.net · ∙ ■
    |07

    ...Distrust all in whom the impulse to punish is powerful.
    ---
    ■ Synchronet ■ -=[ ConstructiveChaos BBS | conchaos.synchro.net ]=-
  • From MRO@VERT/BBSESINF to Codefenix on Tue Nov 5 12:25:13 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 :::
  • From echicken@VERT/ECBBS 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