Coder Social home page Coder Social logo

Uniform spacing about termbox-go HOT 3 OPEN

nsf avatar nsf commented on May 18, 2024
Uniform spacing

from termbox-go.

Comments (3)

nsf avatar nsf commented on May 18, 2024

It probably won't work for this character. Termbox doesn't handle non-standard cell sizes correctly. I tried doing that, but there is no way to do that 100% correctly and in a cross-platform fashion. So, the code which tries to do that is probably broken.

Terminals aren't a good target if you want to draw fancy things.

from termbox-go.

nsf avatar nsf commented on May 18, 2024

Labeling it as a feature request. Because well, termbox was designed around an idea of fixed-sized cells. But terminals and windows console don't work exactly that way.

from termbox-go.

gdamore avatar gdamore commented on May 18, 2024

Generally, Unicode characters with fixed size fonts are indeed fixed size. (The exception is that some Asian characters are double wide, and there are glyphs that are technically zero width -- because they are combining characters like accent marks that have to be applied to a following or preceding character.)

Now, that said, if you know that you're using Unicode, there are some line drawing characters that are part of the Unicode character set. Using those, you can get nice boxes on most terminals. That won't work for non-unicode character sets.

Generally, I try not to rely too much on availability of special characters in console applications.

from termbox-go.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.