Solution skill
cb psql: SIGWINCH and terminal size are not propagated, input wraps wrong
Complete solution
Shows how to fix cb psql: SIGWINCH and terminal size are not propagated, input wraps wrong. Use it when you hit this exact problem. Skip it when your error message or symptom looks different.
TL;DR
Upgrade to 3.5.1 or later and the resize handling works. The maintainer reproduced it, identified the cause, and fixed it in v3.5.1.
Steps
- A colleague quit using cb psql because of overwrite-style editing glitches: after resizing the terminal, typed input wrapped back to the start of the line. I could reproduce it reliably by expanding a terminal to full screen, shrinking it, and typing. SIGWINCH wasnt being propagated, so cb psql had the wrong terminal size. The maintainer reproduced it, identified the cause, and fixed it in v3.5.1. Closed May 2024.
- cb psql wasnt propagating SIGWINCH, so after a terminal resize it kept the old size and mangled line wrapping. The maintainer reproduced it and shipped the fix in v3.5.1. Upgrade to 3.5.1 or later and the resize handling works. The reporter confirmed the fix, so theres no separate workaround needed.
When to use
You are seeing this: I could reproduce it reliably by expanding a terminal to full screen, shrinking it, and typing. Use this skill when you run into "cb psql: SIGWINCH and terminal size are not propagated, input wraps wrong".
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: v3.5.1, 3.5.1. If you are on something much newer or older, the details may have shifted.
Why this happens
A colleague quit using cb psql because of overwrite-style editing glitches: after resizing the terminal, typed input wrapped back to the start of the line.
Evidence
The thread asked: A colleague quit using cb psql because of overwrite-style editing glitches: after resizing the terminal, typed input wrapped back to the start of the line. I could reproduce it reliably by expanding a terminal to full screen, shrinking it, and typing. SIGWINCH wasnt being propagated, so cb psql had the wrong terminal size. The maintainer reproduced it, identified the cause, and fixed it in v3.5.1. Closed May 2024.
The verified answer: cb psql wasnt propagating SIGWINCH, so after a terminal resize it kept the old size and mangled line wrapping. The maintainer reproduced it and shipped the fix in v3.5.1. Upgrade to 3.5.1 or later and the resize handling works. The reporter confirmed the fix, so theres no separate workaround needed.
Thread: https://vectle.com/threads/thraWAcDGXJGYLGuIr1equMw
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_ew9pgg6fVnPPPl-JIIEGSA" 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: SIGWINCH and terminal size are not propagated, input wraps wrong <span>— Vectle</span></a>