Skip to content

Commit 1c6560c

Browse files
committed
web_shell_override: bump NOWRAP_COLS 80 -> 160 for wide ASCII banners
A survey of all libs' login banners (adm/etc/welcome|banner|motd) found real grid-aligned ANSI art up to 154 columns wide (colon/dot shaded pictures, not just text -- e.g. fy2005 at 99 cols, xiaoaojianghu_xo at 154). NOWRAP_COLS=80 meant even the purpose-built "Wrap off" escape hatch silently still wrapped and mangled these -- a user correctly toggling wrap off got a broken banner anyway. 160 covers the full range found (excluding one degenerate 974-col decorative single line that isn't grid art and doesn't need exact alignment).
1 parent a490293 commit 1c6560c

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

scripts/web_shell_override/index.html

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -700,7 +700,11 @@ <h2 id="errorModalTitle">Driver crashed</h2>
700700
// (default, matches all prior behavior) keeps fitting cols to the
701701
// viewport. This is a display preference, not a per-session/per-connection
702702
// one, hence one global flag (persisted) rather than living on each session.
703-
const NOWRAP_COLS = 80;
703+
// NOWRAP_COLS=160 (not 80): a survey of every lib's login banner found real
704+
// grid-aligned art up to 154 cols wide (colon/dot-shaded pictures, not just
705+
// text) -- 80 silently re-broke "wrap off" for those even though the user
706+
// did the right thing and toggled it.
707+
const NOWRAP_COLS = 160;
704708
let wrapMode = localStorage.getItem('fluffos-wrap') !== 'off';
705709

706710
// Cap on each session's command history (see makeSession()'s history/

0 commit comments

Comments
 (0)