procs icon indicating copy to clipboard operation
procs copied to clipboard

Use minus for the pager

Open AMythicDev opened this issue 5 years ago • 3 comments

I saw the README of procs and found that pager support on Windows is experimental and I can guess the reason is no good pager is available there that. The other option is to distribute it alongside procs which would require Mingw to be distributed.

This is where minus comes to the rescue, it's cross-platform Rust library for sync as well async paging. I think that would very easily solve this problem

Disclosure: I am the author of minus

AMythicDev avatar Feb 16 '21 14:02 AMythicDev

Thanks!

I was interesting in minus, and tried it previously. However, at that time, the pager scroll was not smooth. (According to my memory, each line scroll caused full screen refresh)

It may be the wrong usage. I'll try it again.

dalance avatar Feb 16 '21 15:02 dalance

Well it's still the case. Each line scroll causes a full screen refresh but it's in the design of minus There's no way you can pop out lines of terminal or push at the end of it. Maybe if someone goes through a full rewrite he/she can think of better algorithms

AMythicDev avatar Feb 16 '21 15:02 AMythicDev

OK. I think smooth scroll is better because full screen refresh in a large terminal with Full-HD/4K display is slow. Anyway, minus can be used as Windows pager at least. I'll try later.

dalance avatar Feb 16 '21 15:02 dalance

I added minus as built-in pager, and now pager is supported on Windows. Already minus seems to have smooth scroll, it's very good.

dalance avatar Mar 03 '23 05:03 dalance

I released v0.14.0.

dalance avatar Mar 07 '23 09:03 dalance