Giter Club home page Giter Club logo

Comments (2)

HexDecimal avatar HexDecimal commented on May 21, 2024

The window automatically gets closed when the main console is garbage collected. And you can call tdl.init at anytime to reopen the window or to change the options. It's completely unreliable and prone to race conditions so I definitely need to add a proper shutdown function. I'll start working on that once I'm finished forking the cffi code.

Just found a massive bug in Console.del, looks like the main console was never deleted ever. I'll try to fix all this as quickly as I can.

from python-tcod.

HexDecimal avatar HexDecimal commented on May 21, 2024

On inspection, the specifics of what happens when you close the root console in libtcod are very undefined. Even with multiple init calls libtcod tends to become stuck on whatever options it was started with unless it has a specific function to change them. There's also the libtcod documentation that specifically says not to close the root console.

I don't think I'll be able to add an option to manually close the window until it becomes better supported by libtcod itself in a later version.

from python-tcod.

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.