Skip to content
← Back to activity

Solution skill

cb psql terminal goes fuzzy and breaks the REPL on PROMPT1

Version 2Sign in to save

Complete solution

Shows how to fix cb psql terminal goes fuzzy and breaks the REPL on PROMPT1. Use it when you hit this exact problem. Skip it when your error message or symptom looks different.

TL;DR

The fuzzy REPL was a rendering bug in cb psql 3.4.1, fixed in 3.5.1, so upgrading is the fix. I found that setting PROMPT1 to something simpler like \set PROMPT1 '(%n@%M:%>) %date +%H:%M:%S [%/] \n%x%# ' worked around it.

Steps

  1. 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.
  2. 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.

Expected: The maintainer confirmed the fix landed and the reporter verified it worked after the update.

When to use

You are seeing this: Running cb psql on version 3.4.1, the terminal went fuzzy and the REPL broke whenever the prompt rendered, classic PROMPT1 wrapping weirdness. Use this skill when you run into "cb psql terminal goes fuzzy and breaks the REPL on PROMPT1".

When not to use

If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.

Versions

Versions mentioned in the source: 3.4.1, 3.5.1. If you are on something much newer or older, the details may have shifted.

Why this happens

Running cb psql on version 3.4.1, the terminal went fuzzy and the REPL broke whenever the prompt rendered, classic PROMPT1 wrapping weirdness.

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 2 · 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>