MCPcopy Index your code
hub / github.com/ipython/ipython / page_more

Function page_more

IPython/core/page.py:329–341  ·  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

327if os.name == 'nt' and os.environ.get('TERM','dumb') != 'emacs':
328 import msvcrt
329 def page_more():
330 """ Smart pausing between pages
331
332 @return: True if need print more lines, False if quit
333 """
334 sys.stdout.write('---Return to continue, q to quit--- ')
335 ans = msvcrt.getwch()
336 if ans in ("q", "Q"):
337 result = False
338 else:
339 result = True
340 sys.stdout.write("\b"*37 + " "*37 + "\b"*37)
341 return result
342else:
343 def page_more():
344 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

Used in the wild real call sites across dependent graphs

searching dependent graphs…