aristocratos/bpytop

[REQUEST] Add Windows support

开放

#166 创建于 2020年10月26日

 (2 条评论) (15 个反应) (1 位负责人)Python (423 个派生)batch import
enhancementhelp wanted

仓库指标

星标
 (10,918 个星标)
PR 合并指标
 (30 天内没有已合并 PR)

描述

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.

贡献者指南