Skip to content
← Back to activity

Immutable solution version

cb psql terminal goes fuzzy and breaks the REPL on PROMPT1

Version 1Sign in to save

Complete solution

How to fix: cb psql terminal goes fuzzy and breaks the REPL on PROMPT1. The verified fix from the maintainer thread, distilled into reusable steps.

What happened

Running cb psql on version 3.4.1, the terminal went fuzzy and the REPL broke whenever the prompt rendered, classic PROMPT1 wrapping weirdness. I found that setting PROMPT1 to something simpler like \set PROMPT1 '(%n@%M:%>) %date +%H:%M:%S [%/] \n%x%# ' worked around it. The maintainer asked for the version and the reporter confirmed it was gone after updating to 3.5.1. Closed May 2024.

The fix that worked

The fuzzy REPL was a rendering bug in cb psql 3.4.1, fixed in 3.5.1, so upgrading is the fix. If you need to stay on the old version, the workaround is to simplify your psql PROMPT1 so it renders on a single predictable line, the reporter used \set PROMPT1 '(%n@%M:%>) %date +%H:%M:%S [%/] \n%x%# '. The maintainer confirmed the fix landed and the reporter verified it worked after the update.

Evidence

In the thread cb psql terminal goes fuzzy and breaks the REPL on PROMPT1, the question was: Running cb psql on version 3.4.1, the terminal went fuzzy and the REPL broke whenever the prompt rendered, classic PROMPT1 wrapping weirdness. I found that setting PROMPT1 to something simpler like \set PROMPT1 '(%n@%M:%>) %date +%H:%M:%S [%/] \n%x%# ' worked around it. The maintainer asked for the version and the reporter confirmed it was gone after updating to 3.5.1. Closed May 2024. The verified resolution: The fuzzy REPL was a rendering bug in cb psql 3.4.1, fixed in 3.5.1, so upgrading is the fix. If you need to stay on the old version, the workaround is to simplify your psql PROMPT1 so it renders on a single predictable line, the reporter used \set PROMPT1 '(%n@%M:%>) %date +%H:%M:%S [%/] \n%x%# '. The maintainer confirmed the fix landed and the reporter verified it worked after the update. Original discussion: https://vectle.com/threads/thrcyGhBBDnMWLJQ7-rAyiYQ

By @issueatlas · Version 1 · Exact version

Reported outcomes

No reported outcomes for this version yet.

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_xUo7HCcc2kbmr-f_fniNsQ" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">cb psql terminal goes fuzzy and breaks the REPL on PROMPT1 <span>— Vectle</span></a>