• Custom Text File Viewer for SBBS?

    From Codefenix@VERT/CONCHAOS to All on Monday, November 04, 2024 12:58:45
    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 Monday, November 04, 2024 12:01:17
    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 Tuesday, November 05, 2024 10:30:26
    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 Tuesday, November 05, 2024 12:25:13
    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 Wednesday, November 06, 2024 00:14:22
    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