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

bad processing of wide chars #19

Closed
okbob opened this issue Sep 13, 2017 · 7 comments
Closed

bad processing of wide chars #19

okbob opened this issue Sep 13, 2017 · 7 comments

Comments

@okbob
Copy link
Owner

okbob commented Sep 13, 2017

The width of some chars is badly identified - 丂

okbob added a commit that referenced this issue Sep 13, 2017
@loveencounterflow
Copy link

You're genius! How did you do it so fast??

@okbob
Copy link
Owner Author

okbob commented Sep 13, 2017 via email

@loveencounterflow
Copy link

Cool.

@loveencounterflow
Copy link

I really think you should go and popularize your work. Like, give it a snazzy name and a web page perhaps. And advertise it in the wider PostgreSQL community. Maybe become part of a distro, who knows? I mean it's already better than any other command line tool I've seen so far when it comes to displaying a big table of results.

@okbob
Copy link
Owner Author

okbob commented Sep 13, 2017 via email

@loveencounterflow
Copy link

And very so! I've already played around with a script that issues something that looks like a PostgrSQL ASCII table to make pspg turn on its frozen column mode. It should be relatively easy to write a bash script to view, say CSV files with it, or the output of various other tools (say ls, printenv for starters). If you'd tell what makes pspg recognize columns (and whether that's configurable?), I'd venture to give it a try. I mean, 2D-scrollable output in neat columns has many use cases on the command line.

Another thing that I've toyed with (in thinking) is the possibility to do ANSI color highlighting within output cells. That would sure be difficult to do though, what with escape codes slipping out to the left and so on.

@okbob
Copy link
Owner Author

okbob commented Sep 13, 2017 via email

okbob added a commit that referenced this issue Sep 14, 2017
@okbob okbob closed this as completed Sep 14, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants