dalance / procs

A modern replacement for ps written in Rust
MIT License
5k stars 109 forks source link

Hangs when running inside tmux unless pager is disabled #330

Open aqrln opened 2 years ago

aqrln commented 2 years ago

procs hangs when trying to run it in tmux. It works when running it with --pager disable, or when running it directly in the terminal outside of tmux session.

OS: macOS 12.5 (arm64) Terminal: iTerm2 3.4.16 + tmux 3.3a

Related: https://github.com/dalance/procs/issues/142, https://github.com/dalance/procs/issues/288

wendajiang commented 1 year ago

Same issue. OS: macOS 12.6 Terminal: Alacritty + tmux 3.3a

Also --pager diable works.

wendajiang commented 1 year ago

I try --pager disable or --theme dark, it's both work. Review the #221, and find the Theme::Auto cause termgb::latency set to the 10s duration, and then pager is crash. So it look like the two crate is conflict specially termgb query the term color mode hang-up too long.

Look like theme find and pager and tmux mix conflict. Single test works.

scheidelerl commented 1 year ago

Alacritty: With me it says WARNING: terminal is not fully functional with --theme dark. And then the prompt does nothing but reset the colon all the time I push a key and nothing else happens. q works fortunately. With --pager disable in alacritty it writes the process table to the terminal, but there is no prompt or functionality. I think this is what disable the pager mean. So this works.

Integrated Terminal: Gives me the prompt and functionalities back, but the displayed information's are still broken. No CPU/MEM/CPU time or user are displayed correctly. No change with --theme dark.

OS: Linux, Ubuntu 22.04.2 LTS Emulator: Alacritty + integrated Terminal + tmux next-3,4 procs version: 0.13.0

iloveitaly commented 1 year ago

I'm running into this as well (occurs with PAGER=ov as well) but if I press enter I get the paging output.