-
I am not quite understanding what From the README:
Yet |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Thanks for bringing this up - the README could certainly use an update. It was valid during The problem here is that I have no intention to change something that's working, for If you like, please feel free to submit a PR with a README update to clarify this, and be less confusing for the next reader who comes along. |
Beta Was this translation helpful? Give feedback.
-
Thanks, Byron. I appreciate your reply. You might find this commit interesting: matta/dua-cli-without-tui-react@c22a718 I found that porting https://github.com/Byron/dua-cli off the The key insight is that any struct may both implement The technique in my commit uses a closure to establish a level of indirection between the My first attempt used a bespoke struct that held the mutable references needed just for the one call site in dua's eventqueue.rs. I only came up with the more general closure based approach after some head scratching. Let me know if you are interested in the above as a PR. Of course, it is perfectly fine if you are not. Either way, I think I'll approach the ratatui people about this approach to see if they'd like to bless this approach as a way to bridge ratatui into non-Widget based rendering approaches. If the |
Beta Was this translation helpful? Give feedback.
Thanks for bringing this up - the README could certainly use an update.
It was valid during
tui
times when certain paradigms couldn't be done. By now, this can probably be done just as well withratatui
alone.The problem here is that I have no intention to change something that's working, for
dua
primarily, so these crates are probably going to stay.If you like, please feel free to submit a PR with a README update to clarify this, and be less confusing for the next reader who comes along.