Skip to content

Commit 2d338d1

Browse files
committed
mios.toml [terminal]: edge-to-edge framing (frame_width=79, right_margin=1)
Operator 2026-05-09: "ALL dashboards render to the edge of the MiOS app window size constraints!!". Was: frame_width=75, right_margin=5 -- 5 cells of right-side gap in an 80-col window; dashboard looked floaty inside the WT viewport. Now: frame_width=79, right_margin=1 -- rightmost `│` border lands at col 78 leaving 1 cell of safety against WT's pseudo-console over-reporting WindowWidth by 1 cell during the first paint (before scrollbarState='hidden' applies). Effectively edge-to-edge in WT 1.18+ with launchMode=focus + scrollbarState=hidden + padding=0 (the MiOS profile defaults). The legacy 5-cell margin was empirically derived during a period when WT's pseudo-console + acrylic blur + sub-pixel rounding compounded; modern WT reports the visible cell count correctly from FIRST paint. Bump back to 5 ONLY if powerline wrap returns (operator-tunable in mios.html). Get-MiosFrameWidth (build-mios.ps1) and Show-MiosDashboard / mios-dashboard.sh all read these two keys, so the change propagates to every framed surface in one edit.
1 parent 8f3ceb0 commit 2d338d1

1 file changed

Lines changed: 14 additions & 3 deletions

File tree

usr/share/mios/mios.toml

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1772,9 +1772,20 @@ podman_pkg = "RedHat.Podman-Desktop"
17721772
cols = 80
17731773
rows = 20 # 20 = MiOS portal-feel default; 30 for taller "console" feel
17741774
scrollback_rows = 9000
1775-
frame_width = 75 # = cols - 5. Diagnostic root cause of the 5-hour wrap loop: Write-Host CRLF auto-wrap, NOT chrome reservation alone. When Write-Host emits a string EQUAL to display width N, cursor hits col N (phantom rightmost), auto-wraps to col 0 of next line, then CRLF advances one MORE line -- producing the orphan `|` row between every content row in operator screenshots at 18:38 / 20:26 / 20:38. The 20:48 screenshot at margin=4 / frame=76 stopped the orphan rows BUT the right `│` border landed exactly on the visible edge (col 75 in display=76) and was invisible/clipped. Bumping to margin=5 / frame=75 puts the right `│` at col 74 with 1 visible cell of clear slack to the right edge. Install-MiOSPowerShellProfile writes [Console]::WindowWidth to M:\MiOS\diagnostics\window-width.txt at profile load so the actual cell count is recorded -- if WindowWidth != 80, recompute right_margin = cols - WindowWidth + 2.
1776-
frame_height = 19 # = rows - 1. Reserves 1 row for the prompt under the dashboard.
1777-
right_margin = 5 # 5 cells of slack: 3 for WT chrome over-report (scrollbar gutter + acrylic blur + sub-pixel rounding) + 1 for Write-Host CRLF auto-wrap protection + 1 for the right `│` border to render visibly INSIDE the display edge (not on it). mios.omp.json mirrors with final_space=true (1) + trailing-spacer " " (6) = 7 cells from rightmost; oh-my-posh aligns via ANSI cursor positioning rather than character-by-character output, so it needs +1 over the toml margin to prevent the powerline time chars from hitting the same edge that auto-wraps Write-Host.
1775+
# Operator 2026-05-09: "ALL dashboards render to the edge of the
1776+
# MiOS app window size constraints!!" -- edge-to-edge framing.
1777+
# frame_width = cols - 1, right_margin = 1: the rightmost frame
1778+
# `│` lands at col 78, leaving exactly 1 cell of safety against
1779+
# WT's pseudo-console over-reporting WindowWidth by 1 cell during
1780+
# the first paint (before scrollbarState='hidden' applies).
1781+
# Tighter than the prior 5-cell margin -- WT 1.18+ with
1782+
# launchMode=focus + scrollbarState=hidden + padding=0 reports
1783+
# the visible-cell count correctly from FIRST paint, so the
1784+
# legacy 5-cell chrome reservation is overkill. Bump back to 5
1785+
# only if powerline wrap returns.
1786+
frame_width = 79 # = cols - 1, edge-minus-one
1787+
frame_height = 19 # = rows - 1, reserves 1 row for prompt
1788+
right_margin = 1 # 1 cell of slack against WT first-paint over-report
17781789

17791790
# ----------------------------------------------------------------------------
17801791
# [terminal.install] -- the BOOTSTRAP window dims (taller so the install

0 commit comments

Comments
 (0)