aristocratos/bpytop

[REQUEST] Add Windows support

Open

#166 opened on Oct 26, 2020

View on GitHub
 (2 comments) (15 reactions) (1 assignee)Python (9,714 stars) (393 forks)batch import
enhancementhelp wanted

Description

Is your feature request related to a problem? Please describe. A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] I'd like to use this python application on Windows, not just Linux. Describe the solution you'd like A clear and concise description of what you want to happen. I want to install this python app through PyPi and an msix packaging bundle. Describe alternatives you've considered A clear and concise description of any alternative solutions or features you've considered. Use WSL to utilize this application but likely has limitations. Additional context Add any other context or screenshots about the feature request here. In https://github.com/aristocratos/bpytop/issues/19#issuecomment-716645495 @aristocratos said

Windows compatibility was never in the plans when I started this, so multiple libraries are *nix dependent. Also the input/output control and some pathing is reliant on *nix. And most escape codes used for colors and text control are based on unix standards. Don't even know how well (if at all) 24-bit colors works in the shell for Windows. Feel free to open a request for Windows support, but know that unless someone else takes it upon them to make that happen, it will likely be a long time before I get to it since it would be a lot of work.

If you take a look at https://github.com/microsoft/terminal, you'll find there is plenty of color support for Windows as VT sequences are the primary method of using the console. In fact, OSC color support recently has a drastic support boost: https://github.com/microsoft/terminal/pull/7578. If you've been on Twitter at all, people have been showing usage of this utility in Windows Terminal on WSL.

When testing Windows support, I suggest using Powershell 7 for comparison. Since Powershell is on Linux as well as Windows, I'd do cross comparisons between them.

Contributor guide