On a phone the terminal clipped on the right: FitAddon measured the column count before JetBrains Mono finished loading (narrower fallback metrics → too many columns → the wider real font then overflowed and the right edge was cut). And the PTY opened at a fixed 80x24, so the remote shell's first screenful (MOTD/prompt) was generated at 80 columns and wrapped awkwardly on a ~43-column viewport. - refit immediately, on the next animation frame, and again on document.fonts.ready (font race) - refit on the 'ready' frame before sending the size - pass the browser's cols/rows on the WS URL; the sidecar opens the host PTY / SSH shell at that size (clamped 1..1000), so output is born at the visible width Verified in-browser at 390px: PTY reports 43x23 (matches the box), no horizontal overflow, clean wrapping, zero console errors; desktop server+host terminals and cross-origin rejection still pass. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| caddy | ||
| clusev | ||
| motd | ||
| nginx | ||
| php | ||
| release | ||
| restart-sentinel | ||
| supervisor | ||
| terminal | ||
| wg | ||
| entrypoint.sh | ||