pijul_org / pijul

#159 Use a pager with some pijul commands

Opened by lthms, on September 2, 2017
Closed
lthms commented on September 2, 2017
lthms commented on September 2, 2017

Beware it is an unix only feature. The pager crate does not support windows for now and it looks like it is not planned

porglezomp commented on September 3, 2017

You should probably use Pager::with_pager("less -r").setup() so you get a pager that can handle the formatting colors, ESC[35mdeleted file: ESC(BESC[m looks silly. It looks like there's no easy way to set other fallback pagers if less isn't found (although that seems unlikely to me?) we might want to contribute that to the pager library.\r+ \r + It looks like this properly handles not stealing stdout from a shell pipeline, but I can't see where in pager or your patches that it does that.

lthms commented on September 3, 2017

Looks like @pmeunier has pulled my patches: thanks a lot!\r+ \r + I will have a look at you said, @porglezomp.