htop icon indicating copy to clipboard operation
htop copied to clipboard

[feature request] the -n <int> option of top

Open UnixJunkie opened this issue 3 years ago • 4 comments

Hello, top can be used in batch mode with the -n option: you specify how many screen refreshes you wan before top exits. And at the end, you see the last screen top was displaying. Such behavior would be cool for htop too. For example, I want to see the htop screen just once (and it should not disappear once htop has quit). Regards, F.

UnixJunkie avatar Oct 29 '21 02:10 UnixJunkie

something similar was planned for #377.

BenBE avatar Oct 29 '21 17:10 BenBE

Hello @BenBE, I'd like to work on it if you don't mind =)

0xc0dedad avatar Oct 31 '21 17:10 0xc0dedad

Sure, have a look at the linked issue when working on this so the ideas from there can be included in this new feature.

BenBE avatar Oct 31 '21 21:10 BenBE

thanks a lot @vasvolodimir

UnixJunkie avatar Nov 01 '21 00:11 UnixJunkie

Hi. If there hasn't been any activity of late with regards to this issue, I would like to take it up. I'll look at the linked issue as well.

valdaarhun avatar Jan 30 '23 12:01 valdaarhun

Thanks a lot for having implemented it!

UnixJunkie avatar May 22 '23 23:05 UnixJunkie

Thanks a lot for having implemented it!

My pleasure!

valdaarhun avatar May 23 '23 13:05 valdaarhun