htop not working
'apt-get install htop' is successfull but running just does nothing, black screen.
"htop" (or "top") are based on "ncurses", to have text-based interfaces. As part of GNU it would be implemented, but maybe not working yet depending on the GPL used maybe or the amount of time put in them.
They are distributed on the "X11 library" own license. You may dig for why it is not working.
Currently programs that use ncurses, etc. are going to break because of the limitations with the Windows shell; the Windows shell doesn't implement all the features that, say, xterm implement.
ncdu seems to work ok so it might not be all ncurses features that don't work.
Maybe not all but they did mention reimplementing vt100 iirc, which means that the features that it says it supports probably aren't supported 100%.
htop will be mostly functional in a future build. Here's a quick copy / paste from my dev branch. No ETA on when it will be available to insiders.
1 [|||||||||||||||||||||| 53.7%] Tasks: 3, 0 thr; 1 running
2 [|||||||||||||||||||| 50.5%] Load average: 0.52 0.58 0.59
3 [||||||||||||||||||||| 51.2%] Uptime: 00:11:59
4 [||||||||||||||||||||| 50.7%]
Mem[|||||||||||||| 342/1006MB]
Swp[ 0/0MB]
PID USER PRI NI VIRT RES SHR S CPU% MEM% TIME+ Command
1 root 20 0 0 0 0 S 0.0 0.0 0:00.00 /init
2 russ 20 0 0 0 0 S 0.0 0.0 0:00.40 /bin/bash
252 russ 20 0 0 0 0 R 0.0 0.0 0:00.01 htop
just fX commands not working. in htop manual we can find alternatives like "F10" or q. "q" is working. But clicks unfortunally not working
2020, currently happening for me. Using either the new Windows Terminal, Powershell or inside VS Code. Just shows a black screen when I try to run it.
Also seeing a black screen. Maybe it will work in WSL2, though?
On MS Build conference we got a hope that it will soon work. Though it looks like it won't be available right after WSL2 release.
Adding Linux GUI app support to WSL is on our roadmap Source: WSL BUILD 2020 Summary
@NaisuEDU @kevinhaas If you are using WSL1 Ubuntu 20.04 then to get htop working follow these steps: https://github.com/microsoft/WSL/issues/5125#issuecomment-619350931
@NaisuEDU @kevinhaas If you are using WSL1 Ubuntu 20.04 then to get htop working follow these steps: #5125 (comment)
Thank you, as an update, a day after I posted my comment above, I just opted to install Ubuntu 18 LTS
@NaisuEDU @kevinhaas If you are using WSL1 Ubuntu 20.04 then to get htop working follow these steps: #5125 (comment)
This did not help for WSL2 Ubuntu 20 :( Still having a black screen.
@Alexander-Serov what's the output of wsl.exe -l -v ?
@onomatopellan These steps worked like a charm! Thank you so much!
still doesn't work on clean ubuntu 20.04 installation under wsl2
Yeah I'm having the same issue, I have 2 machines, one with WSL2 Ubuntu 18.04 and htop works but on the other machine with WSL2 Ubuntu 20.04 htop does not work.
I have same problem on Win 10 WSL2 Ubuntu 20.04. When I start htop, than i see only black screen.
Do you two mind confirming the version of htop that you're running, that is causing issues? This may have been caused by a commit during the migration of the project from the original author to the @htop-dev group.
htop 2.2.0