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