cjbassi/ytop

Windows support

Opened this issue · 2 comments

zkat commented

Hi!

I'm a Windows user and I'm in dire need of a good htop alternative that works on Windows terminals. ytop seems amazing and I would love to be able to use it!

I noticed when trying to install through cargo that there's a bunch of compilation errors, so I assume the project isn't quite there yet, but I'm willing to help if that's of any interest!

Hey, I would definitely like to add windows support.

The main issue is that https://github.com/rust-psutil/rust-psutil which is the main resource monitoring library that we are using doesn't have any windows support yet. I know there's quite a few other resource monitoring libraries in rust and many of them do have windows support, so what we could do is add one of them as a ytop dependency specifically on windows and then hook the widgets up to it which should get things working. There's a list of all of the rust resource monitoring libraries at the bottom of the rust-psutil readme that we could go through to find one that works: https://github.com/rust-psutil/rust-psutil#related-projects.

Eventually, I would like to add windows support to rust-psutil (likely by copying one of these other libraries) but that would be more work.

Any help is appreciated!

If it is of any help, bottom uses the sysinfo crate.