Closed GoogleCodeExporter closed 8 years ago
I have managed to hack the change I want in shell.py, no doubt there is also a
proper
way to implement this. Anyhow, here are the diffs, I also attach the complete
file.
stefan@xxxx:~/tracshell/tracshell > diff shell.py.orig shell.py
30c30,32
< TERM_SIZE = get_termsize(sys.stdout)
---
> TERM_SIZE = None
> interactive = True
>
43a46,50
> if len(args) > 0:
> interactive = False
> else:
> TERM_SIZE = get_termsize(sys.stdout)
>
153c160
< if getattr(settings, 'pager', False) and len(output) > TERM_SIZE[0]:
---
> if interactive and getattr(settings, 'pager', False) and len(output)
>
TERM_SIZE[0]:
Original comment by stefan.ronsiek@gmail.com
on 29 Mar 2010 at 9:39
Attachments:
Added. Thanks for the patch. :)
Original comment by j.kennet...@gmail.com
on 18 Sep 2010 at 3:16
Original issue reported on code.google.com by
stefan.ronsiek@gmail.com
on 26 Mar 2010 at 6:48