• Inch by painful inch

    From aLPHA@21:4/158 to All on Fri Oct 29 17:02:02 2021
    Finally turned my attention back today to ArtVu, the BBS-agnostic ANSI
    art gallery program I started earlier this year, then rage-quit when I
    couldn't figure out how to process a file, byte-by-byte, in order to parse extended ANSI codes/cursor codes to deal with column 80 implicit newlines,
    and some other things related to larger screen sizes than 80.

    This week, I spent some time (lunches!) studying people's code who had
    done it in other languages -- Xqtr's mystic pythom (mpy) class, some C++
    code, Go modules, etc. IMHO it's non-trivial, and Xqtr's solution is
    pretty classy. Like, best i've seen to even handle horizontal scrolling
    for art created for larger screen sizes, but viewable on 80 col terminal.

    Happy to report I have the BEGINNINGS of a start in overcoming this
    hurdle (in Go). Tried in lua, failed, but the Go solution ssems to
    be working... Pretty happy. Nowhere near done, but for a hacker like me --
    it's a small victory and a nice way to end the week!

    Cheers, all

    |04a|12LPHA
    |03Alpha Complex |15- |11alphacomplex.us:2323

    --- Talisman v0.28-dev (Linux/armv7l)
    * Origin: BBS: alphacomplex.us:2323 / Sysop Help Desk: https://discord.gg/BmEj4KY7Qj (21:4/158)
  • From apam@21:1/182 to aLPHA on Sat Oct 30 10:47:01 2021
    Happy to report I have the BEGINNINGS of a start in overcoming this
    hurdle (in Go). Tried in lua, failed, but the Go solution ssems to
    be working... Pretty happy. Nowhere near done, but for a hacker like
    me --
    it's a small victory and a nice way to end the week!

    Congrats! It is a real pain parsing ansi. I'm not sure how you go about
    it, but the way to go in my opinion is to render it all in memory, have
    some 80xheight matrix filled with structures containing colour,
    background colour and character.

    Once you parse it all into that you can display it as you want, it's a
    whole lot of work though.

    Andrew

    --
    |03Andrew Pamment |08(|11apam|08)
    |13Happy|10Land |14v2.0|08!|07


    --- Talisman v0.28-dev (Linux/x86_64)
    * Origin: HappyLand v2.0 - telnet://happylandbbs.com:11892/ (21:1/182)
  • From paulie420@21:2/150 to aLPHA on Fri Oct 29 19:05:54 2021
    Happy to report I have the BEGINNINGS of a start in overcoming this
    hurdle (in Go). Tried in lua, failed, but the Go solution ssems to
    be working... Pretty happy. Nowhere near done, but for a hacker like me
    -- it's a small victory and a nice way to end the week!

    Right on, dude. Regardless of the project, I love when you come back to something and get further or over a hurdle that you couldn't figure out last time...

    I dig ArtVu and continue to watch that many things you do for BBSing. Thanks, rockstar.



    |07p|15AULIE|1142|07o
    |08.........

    --- Mystic BBS v1.12 A47 2021/10/25 (Raspberry Pi/32)
    * Origin: 2o fOr beeRS bbs>>>20ForBeers.com:1337 (21:2/150)
  • From Avon@21:1/101 to aLPHA on Sat Oct 30 19:05:40 2021
    On 29 Oct 2021 at 05:02p, aLPHA pondered and said...

    Happy to report I have the BEGINNINGS of a start in overcoming this
    hurdle (in Go). Tried in lua, failed, but the Go solution ssems to
    be working... Pretty happy. Nowhere near done, but for a hacker like me
    -- it's a small victory and a nice way to end the week!

    Hey there :)

    Congrats it's always rewarding to progress a project you are wanting to get across the line. Well done good sir!

    Best, Paul

    --- Mystic BBS v1.12 A47 2021/09/29 (Linux/64)
    * Origin: Agency BBS | Dunedin, New Zealand | agency.bbs.nz (21:1/101)