Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

on mac, pointing to one file doesn't page the output. I can't get the output paged using `less`, it loses all the formatting and color. starting the TUI (no args) and then choosing the file works fine, however.

less --version

less 608 (PCRE2 regular expressions)



are you using `less -r` to pass through raw ansi code?

it also looks like it has a `-p` option for a pager

> CLI output can be displayed in your preferred pager with the -p flag. This defaults to the ANSI-aware less -r if $PAGER is not explicitly set.


yes, was using `less -r`

but `glow -p file.md` is working great! thanks




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: