Comments (6)
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.
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.
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.
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.
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.
So according to #6, this should be fixed now.
from pytermgui.
Related Issues (20)
- [BUG] Long unicode (emojis) get wrong length calculated HOT 1
- Enter doesn't activate buttons HOT 1
- Windows compatibility and example apps HOT 13
- tutorial HOT 10
- [REQUEST] Python 3.8 HOT 2
- [BUG] Cannot delete text in InputField HOT 11
- [BUG] [WSL2] XTerm does not display "box drawing" characters (but other terminals do) HOT 1
- [BUG] Inline widget: Mouse report event 'hover' is not supported HOT 1
- No documentation available HOT 4
- Question regarding `ptg.InputField` HOT 5
- How do I update the values screen HOT 1
- [HOWTO] How can I use the terminal widget? HOT 2
- Official Debian package HOT 1
- [REQUEST] Include pyproject.toml in pip package
- [BUG] Multiline InputField fails to display correctly a in scrollable container
- [BUG] All colors are mapped wrong on Windows when styling
- [REQUEST] WindowManager.add unexpected behvaiour with slot names
- [REQUEST] Browsing between selectables does not trigger scroll
- DOC - Documentations issues/findings
- [BUG] Cursor Movement is broken in InputField HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pytermgui.