> > >Is there a command like more(1) or less(1) in python to display
> > >the output of a command (e.g. dir()) one page at a time?
> >
> >
> > How are you using dir() ?
> >
> > Is it in the "DOS Window" ?
> > One option would be to just get a better console.
>
>I am using Python 2.4 on RedHat Linux 8.0. In xterm window:{{{
>python
>import os
>dir(os)
>}}}
>and the screen scrolls continuously.
>Hi; Please stay on the list... xterm is a pretty old console. Even so, you do have access to a scroll buffer by pressing Shift-PageUp and Shift-PageDown. That may be enough to do what you need to do. There are also some command line switches for xterm to add scrollbars if you need. I am not a big fan of xterm, though. I use konsole. That said, I still think you may want to try ipython. You might also be happy just using help(os) instead of dir(os) The help screens feed through the pager, and you get more info about what each thing is along with the names. _________________________________________________________________ Don't just search. Find. Check out the new MSN Search! http://search.msn.click-url.com/go/onm00200636ave/direct/01/ _______________________________________________ Tutor maillist - [email protected] http://mail.python.org/mailman/listinfo/tutor
