Code Monkey home page Code Monkey logo

Comments (7)

McParen avatar McParen commented on May 28, 2024

Thanks, I have not yet tried 2.0.3, I will do that next. At the moment, I am still trying to find out what caused the unicode background routine in ncurses to stop working (issue #28).

from croatoan.

cage2 avatar cage2 commented on May 28, 2024

from croatoan.

cage2 avatar cage2 commented on May 28, 2024

from croatoan.

McParen avatar McParen commented on May 28, 2024

just define and call, befoe `initscr', the setlocale

Thanks for finding that out, this essentially solves the issue.

probably a better solution needs to be planned.

Why? The call to setlocale is the recommended way to properly start ncurses. From the man page:

The  library uses the locale which the calling program has initialized.
That is normally done with setlocale:

    setlocale(LC_ALL, "");

If the locale is not initialized, the library assumes  that  characters are
printable  as in ISO-8859-1, to work with certain legacy programs.
You should initialize the locale and not rely on  specific  details  of the
library when the locale has not been setup.

Until now, we have simply relied on SBCL doing this for us by default, now we have to do it manually, as every other ncurses app.

from croatoan.

cage2 avatar cage2 commented on May 28, 2024

from croatoan.

McParen avatar McParen commented on May 28, 2024

I've pushed a commit adding a call to setlocale to the initialization of screen objects. For direct ncurses calls, you will have to setlocale manually every time, but that's intended.

For me this solves the issue, can it be closed?

from croatoan.

cage2 avatar cage2 commented on May 28, 2024

from croatoan.

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.