Comments (4)
First of all thank you for taking the time to look into this since I've overlooked this issue until now.
Regarding your first point while I think that solution (A) is an easier path for the fix, solution (B) appears to be more future proof.
Regarding percentages you are making a very good point and moving to floats for better precision is ok for me.
I'm also interested in your setup for testing those cases if you don't mind sharing.
from tui-rs.
The setup is me rescaling a console window way over what my screen is (and getting frustrated doing so). 2^16 is not that much. At work my console window is stretched across 2 HD screens, which is halfway there.
In order to properly test conditions like that a virtual terminal backend may come in handy.
This issue is a bit about too many things at once, so for now I'll play with the ideas here and then I may come up with some PRs. Otherwise - feel free to split it.
from tui-rs.
#92 "resolves" artefacts with backends over 2^16 characters.
Percentage remains unresolved (I may look into it but last time I tried to do something, it took me so long that meanwhile you implemented an equivalent :D).
from tui-rs.
That's great 👍. As you suggested earlier, I think promoting dimensions to u32 might be the next step to cover most use cases. In the meantime, thanks to your work, we have an elegant solution to this problem =).
from tui-rs.
Related Issues (20)
- How to use different styles for a text object?
- How about another style of paragraph wrapping? HOT 1
- Is there a way of modifying individual cells?
- Shell command line and/or/pipeline cause tui not showing properly HOT 2
- Is there a way to update a `Paragraph`? HOT 2
- Is there a way to use embedded ANSI from a string? HOT 1
- Rendering empty Paragraph panics HOT 2
- Empty lines (containing "") are hidden in List output HOT 1
- Multiple selections in a Table HOT 1
- demo deosnt seems to be self contained,build have error could nt found main functions HOT 1
- confused at how to compile and test the demo HOT 2
- Border top with title should render border on the left side
- Better scroll view HOT 1
- Support drawing a portion of the screen
- Get the line number of a string in a paragraph
- Generic state trait
- Using min and max constraints together results in inconsistent (random) layout. HOT 1
- The "intersects" function caused an integer overflow error. HOT 2
- README should say that tui is unmantained and ratatui is the maintained fork HOT 1
- Detecting overflow panic.
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 tui-rs.