Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use rich to render tables with nice Unicode symbols #1586

Closed
williballenthin opened this issue Jul 6, 2023 · 2 comments · Fixed by #1588
Closed

use rich to render tables with nice Unicode symbols #1586

williballenthin opened this issue Jul 6, 2023 · 2 comments · Fixed by #1588
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed

Comments

@williballenthin
Copy link
Collaborator

williballenthin commented Jul 6, 2023

we currently use tabulate to render tables. we should consider using rich instead, which has more styles, including lots of unicode box-drawing shapes.

alternatively, investigate using other themes from tabulate to render the boxes.

current output:

image
@williballenthin williballenthin added enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed labels Jul 6, 2023
@williballenthin
Copy link
Collaborator Author

williballenthin commented Jul 6, 2023

maybe just use tabulate "mixed_grid" instead of "psql":

image

might be nice to dim the table border, too.

@williballenthin
Copy link
Collaborator Author

or using "mixed_outline" as appropriate, to keep things compact:

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant