Skip to content

Commit 920af40

Browse files
Kabuki94claude
andcommitted
set: [terminal].right_margin=2 + frame_width=78 (cols-2) + omp.json trailing spacer
Operator reported "framing too wide STILL" with the previous cols-1 margin -- WT pseudo-console reports WindowWidth 1 cell over the visible cells during the first paint (before scrollbarState='hidden' takes effect), so cols-1 still wrapped the right frame char and the right-aligned time segment onto the next line. cols-2 always leaves 2 cells of effective slack regardless of WT timing. - mios.toml [terminal].frame_width: 79 -> 78 - mios.toml [terminal].right_margin: NEW key, SSOT for the slack count - mios.omp.json: trailing 2-cell text spacer in the right block so the time segment can't wrap when the pseudo-console over-reports width The Get-MiOS.ps1 + build-mios.ps1 reader fix (read mios.toml as explicit UTF-8 instead of cp1252) ships in mios-bootstrap @ 6faface. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
1 parent 9c40990 commit 920af40

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

usr/share/mios/mios.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1621,8 +1621,9 @@ podman_pkg = "RedHat.Podman-Desktop"
16211621
cols = 80
16221622
rows = 20 # 20 = MiOS portal-feel default; 30 for taller "console" feel
16231623
scrollback_rows = 9000
1624-
frame_width = 79 # cols - 1 -- per operator "everything should be -1 width" so the frame leaves a 1-cell gutter on the right edge that neither the frame nor the right-aligned powerline can overflow into
1624+
frame_width = 78 # cols - 2 -- per operator "framing too wide STILL" the previous cols-1 still wrapped because WT pseudo-console reports 1 cell over the visible cell count when the scrollbar reservation hasn't been applied yet (profiles.defaults scrollbarState='hidden' takes effect after the first paint). cols-2 leaves a 2-cell gutter so neither the box-drawing frame nor the right-aligned powerline block can wrap regardless of WT version / DPI / scrollbar timing.
16251625
frame_height = 19 # rows - 1 -- one row reserved for the prompt under the dashboard
1626+
right_margin = 2 # cells of slack between the rightmost paintable cell and where prompt right-aligned segments stop. Applied in Get-MiOS.ps1's WIDTH calc (MIN(WindowWidth - right_margin, frame_width)) and as a trailing spacer segment in mios.omp.json. cols-2 not cols-1: cols-1 still wrapped on the operator's hardware because the WT reported window width was 1 cell wider than the actual visible/paintable width during the first prompt render.
16261627

16271628
# ----------------------------------------------------------------------------
16281629
# [terminal.install] -- the BOOTSTRAP window dims (taller so the install

usr/share/mios/oh-my-posh/mios.omp.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,12 @@
207207
"time_format": "15:04"
208208
},
209209
"template": " {{ .CurrentDate | date .Format }} "
210+
},
211+
{
212+
"//": "Trailing spacer -- reserves 2 cells of right margin so the powerline right block can't wrap to the next line on hosts where the pseudo-console reports a window width 1+ cells over the visible cells (operator's WT during the first paint, before scrollbarState='hidden' takes effect). final_space=true at the theme root reserves 1 additional cell on top, totaling 3 cells of slack from the rightmost cell. Lifted from mios.toml [terminal].right_margin via build-mios.ps1's mios.omp.json substitution; this 2-space template is the vendor default.",
213+
"type": "text",
214+
"style": "plain",
215+
"template": " "
210216
}
211217
]
212218
},

0 commit comments

Comments
 (0)