Function
scrnPause
(swPause,nLines,scrnLine,scrnEnd=None)
Source from the content-addressed store, hash-verified
| 118 | return(keyIn) |
| 119 | |
| 120 | def scrnPause(swPause,nLines,scrnLine,scrnEnd=None): |
| 121 | quit = False |
| 122 | i = 0 |
| 123 | for sLine in scrnLine: |
| 124 | i += 1 |
| 125 | if swPause and nLines >= int(envVars["_scrHeight"])-1: |
| 126 | key = anyKey() |
| 127 | nLines = 0 |
| 128 | if key in "QqCc": |
| 129 | quit = True |
| 130 | break |
| 131 | if sLine is not None: |
| 132 | if scrnEnd is None or i<len(scrnLine): |
| 133 | print(sLine) |
| 134 | nLines += 1 |
| 135 | else: |
| 136 | print(sLine,end="") |
| 137 | return (quit,nLines) |
| 138 | |
| 139 | def exCmd(cFile,passedIn): |
| 140 | try: |
Tested by
no test coverage detected