drive icon indicating copy to clipboard operation
drive copied to clipboard

Use "less" as pager instead of "more"

Open insidewhy opened this issue 9 years ago • 2 comments

"more" sucks compared to "less". Haven't even used more since 199x until this program presented me with it. more is so old it doesn't even work with modern terminals (using urxvt + tmux here).

insidewhy avatar May 04 '15 12:05 insidewhy

Also does not respect PAGER environment variable.

The best would be:

  1. Default pager is less.
  2. Pager can be customised using standard PAGER unix environment variable.

insidewhy avatar May 04 '15 12:05 insidewhy

Hello @ohjames thank you for reporting this and welcome to drive. Actually, no pager is tied to drive. Seeing "---More" for pagination is just the result of a plain printf + scanf combination

fmt.Printf("---More---");
// Then scanning for the response

This repo is no longer being maintained and if you feel this is an issue, please close this issue here and re-open it at https://github.com/odeke-em/drive.

odeke-em avatar May 04 '15 22:05 odeke-em