drmikehenry/svnwrap — pull request #6 by jszakmeister (2014-10-11 10:35:25+00:00)
Title: Add the paging to the log and diff commands.

After using Git so much, I find myself missing the fact that diffs and the logs are run through a pager. This adds that support on non-Windows platforms. I did try on Windows, and noticed a few things:

1) As I suspected, using colorama doesn't really write to stdout, it writes directly to the console. So there's no real way to get both color and paging.

2) Some of default colors don't really work with native Windows. It may work fine under Cygwin--I haven't tried, since I never use Cygwin and don't have it installed on my Windows VM. This is probably something that shoud be fixed in colorama, but it does mean that folks are getting white text instead of colors for any of the "light" colors.

3) I did run it under MsysGit's bash shell, where I have a real less executable and something that mimics a terminal. It worked better, though still suffered the color issue mentioned above. Note: I had to remove the `not platformIsWindows` to make it work.

So in the end, I decided to leave the default pager as less, thinking that Windows users probably don't have it, and if they do, then perhaps they're using msys or cygwin where they have a shell that can handle ANSI color sequences.