WSL icon indicating copy to clipboard operation
WSL copied to clipboard

htop not working

Open trapframe opened this issue 10 years ago • 25 comments

'apt-get install htop' is successfull but running just does nothing, black screen.

trapframe avatar Apr 07 '16 11:04 trapframe

"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.

jolibert avatar Apr 07 '16 12:04 jolibert

They are distributed on the "X11 library" own license. You may dig for why it is not working.

jolibert avatar Apr 07 '16 12:04 jolibert

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.

RyanSquared avatar Apr 07 '16 16:04 RyanSquared

ncdu seems to work ok so it might not be all ncurses features that don't work.

B0073D avatar Apr 08 '16 04:04 B0073D

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%.

RyanSquared avatar Apr 08 '16 16:04 RyanSquared

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

russalex avatar Apr 11 '16 18:04 russalex

just fX commands not working. in htop manual we can find alternatives like "F10" or q. "q" is working. But clicks unfortunally not working

ohrlando avatar Dec 13 '17 19:12 ohrlando

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.

NaisuEDU avatar May 19 '20 18:05 NaisuEDU

Also seeing a black screen. Maybe it will work in WSL2, though?

kevinhaas avatar May 20 '20 09:05 kevinhaas

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

AKharytonchyk avatar May 21 '20 14:05 AKharytonchyk

@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

onomatopellan avatar May 21 '20 14:05 onomatopellan

@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 avatar May 23 '20 17:05 NaisuEDU

@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 avatar Jun 19 '20 07:06 Alexander-Serov

@Alexander-Serov what's the output of wsl.exe -l -v ?

onomatopellan avatar Jun 19 '20 11:06 onomatopellan

@onomatopellan These steps worked like a charm! Thank you so much!

ma-xlo avatar Jul 27 '20 20:07 ma-xlo

still doesn't work on clean ubuntu 20.04 installation under wsl2

mykola-dev avatar Sep 05 '20 12:09 mykola-dev

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.

lekgolo167 avatar Sep 05 '20 21:09 lekgolo167

I have same problem on Win 10 WSL2 Ubuntu 20.04. When I start htop, than i see only black screen.

RadekSimkanic avatar Sep 05 '20 23:09 RadekSimkanic

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.

RyanSquared avatar Sep 06 '20 00:09 RyanSquared

htop 2.2.0

lekgolo167 avatar Sep 06 '20 01:09 lekgolo167