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

Feature Request: Customize the word wrap character #232

Closed
alchemistmatt opened this issue Oct 17, 2023 · 4 comments
Closed

Feature Request: Customize the word wrap character #232

alchemistmatt opened this issue Oct 17, 2023 · 4 comments

Comments

@alchemistmatt
Copy link

When using Putty and running psql , both Courier New and Consolas are unable to render the ↵ character correctly when it is shown for wrapped lines. Courier New shows an empty box and Consolas shows a question mark in a box. I see a reference to the ↵ character in the source code that detects continuation marks:

const char *u1 = "\342\206\265"; /* ↵ */

Is this something that could be customized using \pset to allow us to choose a different character than ?

See the attached image for example output (in the "Access privileges" column)
PostgresPager3_Wrapped_Lines

@okbob
Copy link
Owner

okbob commented Oct 18, 2023

This check is used only in export routine. Another check can slowdown printing. Maybe better to fix this issue in putty. There is not any reason why putty should not to display correct utf8 char.

@okbob
Copy link
Owner

okbob commented Oct 18, 2023

I tested it on my notebook with Windows 10 and fresh putty 0.79, and there is not any problem with new line chars. Tested with consolas font too. It is maybe local problem on your comp.

@alchemistmatt
Copy link
Author

Thank you for the prompt response and test results. I was using Putty 0.74. I updated to Putty 0.79, 64-bit, Windows, and am still seeing the same behavior (box with a question mark instead of ↵) The character appears correctly in my Chrome browser, also using Consolas, so it is definitely quite odd that it doesn't render correctly in Putty. Not sure if it matters, but I'm running Windows 10 Enterprise (on a company managed computer). Since you cannot reproduce this issue, I will close the issue.

@alchemistmatt
Copy link
Author

Another data point: ssh from within Powershell also shows a question mark in a square box. And ... testing from a Windows 2019 Server instance on the domain also shows a question mark in a square box. Perhaps a company-managed font is causing issues.

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