MCPcopy Create free account
hub / github.com/ipython/ipython / page_more

Function page_more

IPython/core/page.py:324–336  ·  view source on GitHub ↗

Smart pausing between pages @return: True if need print more lines, False if quit

()

Source from the content-addressed store, hash-verified

322if os.name == 'nt' and os.environ.get('TERM','dumb') != 'emacs':
323 import msvcrt
324 def page_more():
325 """ Smart pausing between pages
326
327 @return: True if need print more lines, False if quit
328 """
329 sys.stdout.write('---Return to continue, q to quit--- ')
330 ans = msvcrt.getwch()
331 if ans in ("q", "Q"):
332 result = False
333 else:
334 result = True
335 sys.stdout.write("\b"*37 + " "*37 + "\b"*37)
336 return result
337else:
338 def page_more():
339 ans = py3compat.input('---Return to continue, q to quit--- ')

Callers 1

page_dumbFunction · 0.85

Calls 1

writeMethod · 0.45

Tested by

no test coverage detected