You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Changes include:
- pager is no longer a settable parameter which can be changed by the end user at runtime
- The cmd2.Cmd class now has two different attributes:
- pager
- contains command-line command to use to display wrapped text using a pager
- By default set to PAGER environment variable if it exists
- 'more' on Windows or 'less -RXF' on POSIX
- pager_chop
- contains command-line command to use to display chopped (truncated) text using a pager
- Set to same thing as pager unless pager starts with 'less', in which case a ' -S' gets appended
- The cmd2.Cmd.ppaged() method now has an additional optional argument "chop" which defaults to False
- If chop is True, then self.pager_chop gets used as the pager
- If chop is False, then slef.pager gets used as the pager
I couldn't think of any single solution which would somehow magically make all stakeholders perfectly happy. Hopefully this is a reasonable enough compromise that everyone feels that they can get what they need without too much pain ;-)
0 commit comments