-
Notifications
You must be signed in to change notification settings - Fork 224
Prettytable is unmaintained. Change to comfy-table #251
Conversation
Signed-off-by: Chojan Shang <[email protected]>
Codecov Report
@@ Coverage Diff @@
## main #251 +/- ##
=======================================
Coverage 76.76% 76.76%
=======================================
Files 232 232
Lines 19820 19820
=======================================
+ Hits 15214 15215 +1
+ Misses 4606 4605 -1
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome! Thanks a lot, @PsiACE !
fwiw, I did go through the code for |
In the current code, it get's always called if there is no explicit width set via I think this could be refactored to only be called if either:
Dynamic content arrangement in ttys is the core feature of comfy-table, which makes this libc call a necessary evil. |
Turns out, one more call is used. Crossterm's
This seems to be another libc call with, which his used to communicate with All unsafe functions are called from comfy-table's
|
Turns out, I already had this issue once and you can explicitly disable the whole I'm also open to a PR, which hides this behind a feature flag. (Tty should still stay the default though, as it's still comfy-table's core feature) |
I agree that feature flagging this upstream would be useful to this use-case since we do not care about terminals (that is e.g. nutshell's business, cc @elferherrera :) Regardless, being maintained is imo more relevant than these :) |
Change to comfy-table from prettytable. In addition, comfy-table is still actively maintained.
Signed-off-by: Chojan Shang [email protected]