Can I configure Sage's Terminal Mode to always call the pager for docstring queries?
I just noticed when inspecting some common global variables, that the pager ("/usr/bin/less" usually) is only called for docstrings longer than a page. Sensible, but sometimes I don't want that.
sage: filter(lambda a:len(a)==2, dir())
['AA', 'CC', 'Ei', 'GF', 'GL', 'GO', 'GU', 'Gp', 'In', 'J0', 'J1', 'JH', 'Li', 'NN', 'QQ', 'Qp', 'Qq', 'RR', 'SL', 'SO', 'SR', 'SU', 'Sp', 'Sq', 'UP', 'ZZ', 'Zp', 'Zq', '_2', '_3', '_4', '_5', '_6', '_7', '_8', '_9', '__', '_i', 'db', 'gp', 'ln', 'mq', 'oo', 'os', 'pg', 'pi', 'sh']
sage: GU? (starts pager)
sage: GO? (just prints the docstring...same as "sage: print GO.__doc__")
Long docstrings really clutter the terminal. :~(
Fernando Perez (author of Ipython) would know - ypu should email him and post the result here. Or tell him about this site.
Do you like Mike's solution?