Return the string for paging files with an offset. This is the '+N' argument which less and more (under Unix) accept.
(pager, start)
| 308 | |
| 309 | |
| 310 | def 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() |
no outgoing calls
no test coverage detected
searching dependent graphs…