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

Fix cb psql line wrapping issue. #164

Merged
merged 1 commit into from
May 9, 2024

Conversation

abrightwell
Copy link
Member

It was reported in #158 that cb psql was having an issue with line wrapping when text was entered beyond the bounds of the terminal window. It turns out that this issue was related to characters in the prompt being Colorized. And it was these bytes of the resulting string that were causing the issue. So, we've simply removed the Colorize step associated with this particular output. This does not impact the coloring of the text in the prompt as that's part of the configured PROMPT1 in the resulting .psqlrc.

We've also take the opportunity here to update the uri fetching for the user role which was missed as part of #162.

It was reported in #158 that `cb psql` was having an issue with line
wrapping when text was entered beyond the bounds of the terminal window.
It turns out that this issue was related to characters in the prompt
being `Colorized`. And it was these bytes of the resulting string that
were causing the issue. So, we've simply removed the `Colorize` step
associated with this particular output. This does not impact the
coloring of the text in the prompt as that's part of the configured
`PROMPT1` in the resulting `.psqlrc`.

We've also take the opportunity here to update the uri fetching for the
`user` role which was missed as part of #162.
@abrightwell abrightwell requested a review from a team as a code owner May 9, 2024 12:13
@abrightwell abrightwell merged commit 866a8b2 into main May 9, 2024
2 checks passed
@abrightwell abrightwell deleted the abrightwell/fix-psql-prompt-wrap branch May 9, 2024 19:29
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

Successfully merging this pull request may close these issues.

1 participant