I would like to create a scrollable screen in text mode, like the one obtained when typing help(object) in the interpreter. Is there a cross-platform module I can use to eas
from pydoc import ttypager
def jhelp(object):
text = # get text for object
ttypager(text) # display a scrollable screen.
look at pydoc
module in the standard library
I think what you really want is from pydoc import pager
. ttypager
is a very reduced pager, but pager
will automatically use a better pager (basically less
) if it is available.