Coder Social home page Coder Social logo

Comments (6)

fun840 avatar fun840 commented on August 15, 2024

I did some more googling, and found this StackOverflow answer and this github issue for Windows Terminal, I don't really know anything about the structure of the module but it seems implementable.

from pytermgui.

bczsalba avatar bczsalba commented on August 15, 2024

Hey! Windows support currently is very hit or miss, there's some quirks of the system I have to get around.

I currently don't have a Windows machine on me, but once I do I'll implement it.

As a note, I'm fairly certain at least one of the example programs is broken since they were written for an essentially different API. Once 1.0.0 is released I will update them and add some more.

Thank you for your interest!

from pytermgui.

bczsalba avatar bczsalba commented on August 15, 2024

I couldn't figure out an alternative for SIGWINCH on Windows, so for the time being resize events are unhandled on the platform. Thank you for the issue!

from pytermgui.

fun840 avatar fun840 commented on August 15, 2024

Though I'm not really sure how good of a practice it is, it is (probably) possible to start a thread that runs in the background and checks every 0.01 seconds or something if the window size has changed, then calls __update_size()

from pytermgui.

bczsalba avatar bczsalba commented on August 15, 2024

Yeah, that is definitely something I could do sometime later on. WindowManager already runs a separate thread for some actions, so it really shouldn't be that much of a bother.

Fun fact: I think the method you're suggesting is actually what I was using a couple months back, before all the SIGWINCH things were added. Funny how things are with windows sometimes, eh?

It also turns out that this issue was not really fixed, according to this comment, but some new commits should have fixed it properly now.

Reopening until I can confirm it was fixed.

from pytermgui.

bczsalba avatar bczsalba commented on August 15, 2024

So according to #6, this should be fixed now.

from pytermgui.

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.