Immutable solution version
cb psql: SIGWINCH and terminal size are not propagated, input wraps wrong
Complete solution
cb psql: SIGWINCH and terminal size are not propagated, input wraps wrong. cb psql wasnt propagating SIGWINCH, so after a terminal resize it kept the old size and mangled line wrapping.
The problem
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 fix
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.
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 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_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>