Hacker Newsnew | past | comments | ask | show | jobs | submit | orhunp_'s commentslogin

Most likely. I just checked and it uses embedded-graphics already which means you can plug in Mousefood directly. The touchscreen might be a bit tricky though, it might need some hacking on the event handler side. But it will most likely work if you map the coordinates to the terminal cells abstraction somehow.


Hey all, thanks for the interest to the crate!

I'm currently live on YouTube (doing some maintenance & testing). Feel free to join if you have any questions!

https://www.youtube.com/watch?v=PoYEQJbYNMc


we're bringing back those aesthetics!


absolutely, it will work with any other embedded Rust application. The backend only provides a bridge between the embedded-graphics library and the Ratatui widget renderer.


The primary goal is to serve apps that use https://ratatui.rs to web. You can still bundle Javascript via Trunk though.


I would definitely appreciate some ideas on how to do that. Right now we are rendering in a loop created via RequestAnimationFrame


I swear this isn’t an “rtfm” dig, but in the case that this report of flickering is the first you’ve been made aware of it (and so you haven’t dug into it yet) I recently had to deal with this when experimenting with WebGL for the first time and found this thread to be full of information. https://stackoverflow.com/questions/19764018/controlling-fps... A few of the suggestions “work”, but in the end I went with the accepted answer, only modified to use window.performance.now() rather than Date.now() from the accepted answer.

There are more suggestions that make sense but I haven’t tried that include using multiple threads, calling setInterval/setTimeout in a separate thread for CPU work from the rAF() call (which is GPU and should not update if there is nothing to update) but this wasn’t immediately helpful to me so I went with the elapsed time test and explicit frameRate. There are some potential sync issues over time but they are discussed in the SO thread and additionally on the mozilla developer site, where they also discuss syncing to an audio clock at 60 Hz.


yup, we are aware of that bug: https://github.com/orhun/ratzilla/issues/28


OP here, that's great! Let me know if you ever try out Ratzilla :)


OP here, thanks for posting the project. The FOSDEM talk will be also available soon I hope.

I'm planning to focus more on responsiveness and adding more web-only widgets for the next releases. Of course there are a lot of other things to fix & improve :)

Let me know if you have any specific feedback or ideas!


I didn't get what you mean by that suggestion. Can you maybe elaborate or re-phrase it?


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: