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

Function get_pager_start

IPython/core/page.py:310–323  ·  view source on GitHub ↗

Return the string for paging files with an offset. This is the '+N' argument which less and more (under Unix) accept.

(pager, start)

Source from the content-addressed store, hash-verified

308
309
310def get_pager_start(pager, start):
311 """Return the string for paging files with an offset.
312
313 This is the '+N' argument which less and more (under Unix) accept.
314 """
315
316 if pager in ['less','more']:
317 if start:
318 start_string = '+' + str(start)
319 else:
320 start_string = ''
321 else:
322 start_string = ''
323 return start_string
324
325
326# (X)emacs on win32 doesn't like to be bypassed with msvcrt.getch()

Callers 2

pager_pageFunction · 0.85
page_fileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…