[IPython-dev] [PATCH] make dump_pager more smart (on Windows)
Fernando Perez
Fernando.Perez at colorado.edu
Mon Oct 10 14:33:10 EDT 2005
Alexander Belchenko wrote:
> Attached patch provide clearing prompt "---Return to continue, q to
> quit--- " after hitting the key so this prompt don't mix with printed text.
Thanks, this one looks like a no-brainer to me. Any caveats from our win32
experts, since I can't actually test it? It looks pretty harmles on the
surface...
> This solution intended for Windows users,
> but I think for Linux can be done similar thing (instead of
> msvcrt.getch() should be used more sophisticated read method from terminal).
*nix always has real, full featured pagers available, so there's no need for
more. The page_dumb routine is only there to try to work around the
limitations of the Windows default environment.
> BTW, on Windows 2K/XP also colud be used 'more' pager but only when
> nocolor scheme used (because 'more' does not handle coloring escape
> sequences).
> May be it worth to put remark about this in hints?
If windows users want a real pager, I imagine they'd be better off using the
cygwin toolkit, no? That comes with the full-featured *nix console tools,
which don't have all the limitations of the default windows ones. At least
that's been my understading from third-party information, perhaps I'm mistaken.
Regards,
f
More information about the IPython-dev
mailing list