question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support 'linestyle unicode' table borders

See original GitHub issue

Description

It would be nice if pgcli supported using unicode symbols for table borders, like psql does if one sets \pset linestyle unicode in .psqlrc. Compare psql output:

image

with equivalent pg_cli:

image

Your environment

Ubuntu Linux, pgcli 2.0.2

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:2
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
Smylerscommented, Jul 31, 2019

Unfortunately fancy_grid isn’t actually equivalent to psql’s unicode display: it puts a grid line between each row, halving the number of records that fit on the screen:

psql with unicode lines:

image

pgclie with fancy_grid:

image

Please can this issue be re-opened for pgcli to have a fancy border style that doesn’t include grid lines between each item? Thanks

2reactions
amjithcommented, Apr 3, 2019

The good news is that we already support this. You can change the table format in the config file ~/.config/pgcli/config or at runtime using the \T [fomat_name].

The format you’re looking for is called fancy_grid.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Thread: new unicode table border styles for psql : Postgres ...
having to write specialized code each time. I have a idea about sql shell with lua support - but probably as separate application...
Read more >
border-style - CSS: Cascading Style Sheets - MDN Web Docs
The border-style shorthand CSS property sets the line style for all four sides of an element's border.
Read more >
CSS border-style property - W3Schools
More "Try it Yourself" examples below. Definition and Usage. The border-style property sets the style of an element's four borders. This property can...
Read more >
How to Change the Table Border Style in the psql Query Results
We can use the \pset linestyle command to change the line drawing style of the border. It can be set to ascii ,...
Read more >
Defining Borders for Tables and Table Cells - LibreOffice Help
Select a line style and color for the selected border style in the Line area. These settings apply to all border lines that...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found