A bug report (#891381) was filed against the undertime Debian package, which uses this library, because it doesn't support piping the SingleTable through less or similar pagers.
I can confirm that terminaltables seriously garbles the terminal when piped into a pager:
One suggested fix was to send "proper" unicode or ANSI escape sequences to avoid freaking out pages like less. There are three pending pull requests to implement the former: #42, #47 (which supersedes #42) and #50. I haven't tested if those fix the issue, but it would be great to have a solution for this implemented somehow, so I figured I would document the issue to facilitate the tracking across projects.
I just noticed that the DoubleTable style outputs unicode in Linux, so I have switched to that now, but maybe the same should be done for the SingleTable style?
A bug report (#891381) was filed against the undertime Debian package, which uses this library, because it doesn't support piping the
SingleTable
throughless
or similar pagers.I can confirm that terminaltables seriously garbles the terminal when piped into a pager:
This requires a
reset
to get fixed.One suggested fix was to send "proper" unicode or ANSI escape sequences to avoid freaking out pages like less. There are three pending pull requests to implement the former: #42, #47 (which supersedes #42) and #50. I haven't tested if those fix the issue, but it would be great to have a solution for this implemented somehow, so I figured I would document the issue to facilitate the tracking across projects.