Skip to content
  • Hjem
  • Seneste
  • Etiketter
  • Populære
  • Verden
  • Bruger
  • Grupper
Temaer
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Kollaps
FARVEL BIG TECH
  1. Forside
  2. Ikke-kategoriseret
  3. "Word wrapping is easy.

"Word wrapping is easy.

Planlagt Fastgjort Låst Flyttet Ikke-kategoriseret
6 Indlæg 5 Posters 0 Visninger
  • Ældste til nyeste
  • Nyeste til ældste
  • Most Votes
Svar
  • Svar som emne
Login for at svare
Denne tråd er blevet slettet. Kun brugere med emne behandlings privilegier kan se den.
  • fribbledom@mastodon.socialF This user is from outside of this forum
    fribbledom@mastodon.socialF This user is from outside of this forum
    fribbledom@mastodon.social
    wrote sidst redigeret af
    #1

    "Word wrapping is easy. Just count characters and split on spaces, right?"

    Sure.

    Until you account for Unicode grapheme clusters, terminal cell width, combining characters, ZWJ, emoji, CJK, tabs, ANSI sequences, OSC 8 hyperlinks, indentation, hard/soft breaks, unbreakable words, hyphenation, and trailing whitespace.

    And then a scrollbar enters the chat.

    Easy.

    simon_w@cloudisland.nzS kboyd@phpc.socialK edolnx@kind.socialE studio369@mas.toS 4 Replies Last reply
    1
    0
    • fribbledom@mastodon.socialF fribbledom@mastodon.social

      "Word wrapping is easy. Just count characters and split on spaces, right?"

      Sure.

      Until you account for Unicode grapheme clusters, terminal cell width, combining characters, ZWJ, emoji, CJK, tabs, ANSI sequences, OSC 8 hyperlinks, indentation, hard/soft breaks, unbreakable words, hyphenation, and trailing whitespace.

      And then a scrollbar enters the chat.

      Easy.

      simon_w@cloudisland.nzS This user is from outside of this forum
      simon_w@cloudisland.nzS This user is from outside of this forum
      simon_w@cloudisland.nz
      wrote sidst redigeret af
      #2

      @fribbledom And don’t forget Taumatawhakatangihangakoauauotamateaturipukakapikimaungahoronukupokaiwhenuakitanatahu

      1 Reply Last reply
      0
      • fribbledom@mastodon.socialF fribbledom@mastodon.social

        "Word wrapping is easy. Just count characters and split on spaces, right?"

        Sure.

        Until you account for Unicode grapheme clusters, terminal cell width, combining characters, ZWJ, emoji, CJK, tabs, ANSI sequences, OSC 8 hyperlinks, indentation, hard/soft breaks, unbreakable words, hyphenation, and trailing whitespace.

        And then a scrollbar enters the chat.

        Easy.

        kboyd@phpc.socialK This user is from outside of this forum
        kboyd@phpc.socialK This user is from outside of this forum
        kboyd@phpc.social
        wrote sidst redigeret af
        #3

        @fribbledom you forgot ... wrapping around images.

        1 Reply Last reply
        0
        • fribbledom@mastodon.socialF fribbledom@mastodon.social

          "Word wrapping is easy. Just count characters and split on spaces, right?"

          Sure.

          Until you account for Unicode grapheme clusters, terminal cell width, combining characters, ZWJ, emoji, CJK, tabs, ANSI sequences, OSC 8 hyperlinks, indentation, hard/soft breaks, unbreakable words, hyphenation, and trailing whitespace.

          And then a scrollbar enters the chat.

          Easy.

          edolnx@kind.socialE This user is from outside of this forum
          edolnx@kind.socialE This user is from outside of this forum
          edolnx@kind.social
          wrote sidst redigeret af
          #4

          @fribbledom I've been struggling with understanding all of this because I want to make a modern terminal emulator and display controller on a microcontroller, then FPGA, for use in Open Hardware designs. It's so much.

          fribbledom@mastodon.socialF 1 Reply Last reply
          0
          • edolnx@kind.socialE edolnx@kind.social

            @fribbledom I've been struggling with understanding all of this because I want to make a modern terminal emulator and display controller on a microcontroller, then FPGA, for use in Open Hardware designs. It's so much.

            fribbledom@mastodon.socialF This user is from outside of this forum
            fribbledom@mastodon.socialF This user is from outside of this forum
            fribbledom@mastodon.social
            wrote sidst redigeret af
            #5

            @edolnx

            Don't worry, you're discovering the secret of terminal emulation: nobody actually understands any of it 🤣

            It's legacy hacks built on legacy hacks built on a workaround for a historical accident, with another workaround added because the first workaround became a de facto standard.

            You're probably doing great. Welcome to terminal development!

            1 Reply Last reply
            0
            • fribbledom@mastodon.socialF fribbledom@mastodon.social

              "Word wrapping is easy. Just count characters and split on spaces, right?"

              Sure.

              Until you account for Unicode grapheme clusters, terminal cell width, combining characters, ZWJ, emoji, CJK, tabs, ANSI sequences, OSC 8 hyperlinks, indentation, hard/soft breaks, unbreakable words, hyphenation, and trailing whitespace.

              And then a scrollbar enters the chat.

              Easy.

              studio369@mas.toS This user is from outside of this forum
              studio369@mas.toS This user is from outside of this forum
              studio369@mas.to
              wrote sidst redigeret af
              #6

              @fribbledom wrap the words in a burrito and eat it

              1 Reply Last reply
              0
              • jwcph@helvede.netJ jwcph@helvede.net shared this topic
              Svar
              • Svar som emne
              Login for at svare
              • Ældste til nyeste
              • Nyeste til ældste
              • Most Votes


              • Log ind

              • Har du ikke en konto? Tilmeld

              • Login or register to search.
              Powered by NodeBB Contributors
              Graciously hosted by data.coop
              • First post
                Last post
              0
              • Hjem
              • Seneste
              • Etiketter
              • Populære
              • Verden
              • Bruger
              • Grupper