Skip to content

os: a 16x32 console font and a full-width selection bar (#707) - #722

Merged
bong-water-water-bong merged 1 commit into
osv2/704-image-versionfrom
osv2/707-console-font
Nov 1, 2026
Merged

bong-water-water-bong merged 1 commit into
osv2/704-image-versionfrom
osv2/707-console-font

Conversation

@bong-water-water-bong

Copy link
Copy Markdown
Collaborator

Fixes #707. On the board's panel the menu was an 8x16 corner and the inverse-video bar covered only
> 1 Chat.

The image kernel is built with CONFIG_FONT_TER16x32=y, so the cmdline now asks fbcon for that font - no font
file, no setfont, nothing extra in the image. 1bit-menu pads a row to the terminal width before inverse video,
so the bar covers the number, the label and the description.
PR-READY.

Base automatically changed from osv2/705-one-flow to osv2/704-image-version November 1, 2026 03:08

@bong-water-water-bong bong-water-water-bong left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

VERDICT: READY

At 03aee782 (os/mini/1bit-menu +12 −3, os/mini/mkimage.sh +4 −1). Both halves check out against the tree and the kernel, not just against the comment.

fbcon=font:TER16x32 is valid on the image kernel. The comment claims the kernel is built with CONFIG_FONT_TER16x32=y; /boot/config-7.3.0-rc4-1bit-perfopt+ (the kernel mkimage.sh embeds) has:

CONFIG_FRAMEBUFFER_CONSOLE=y
CONFIG_FONT_8x16=y
CONFIG_FONT_TER16x32=y

so the cmdline parameter names a font that is actually compiled in — no font file, no setfont, nothing to keep in the image, as claimed. The rest of the cmdline is untouched, so #719's loglevel=4 argument is neither fixed nor worsened here.

The bar has the width it needs. ${#p_txt} is compared against $((COLS - 2)), and COLS is initialised at line 63 (COLS=80, with the "25x80 is the fallback when stty size cannot answer" note) — before pick() is defined at 210 and before every call site (315, 530, 603), so the pad loop cannot run against an empty variable. The row is padded before $REV/inverse video is applied, which is what makes the whole line one bar rather than a short box, and \033[K still clears the tail.

One cosmetic note, not a blocker: padding counts characters (${#p_txt}), so a description containing a multi-byte glyph (an em dash, for instance) will under-fill by one column per glyph. If the labels ever gain those, switch the pad loop to a byte/width-aware count; today the strings are ASCII.

bash -n clean. tprs-ready applied.

Note on scope: this sits on 86dbe7ed, so it inherits #720's hrx-system pin problem and #719's serial-loglevel question — neither is this PR's, and I am not holding #722 for them, but the stack cannot land until those two are resolved.

@bong-water-water-bong bong-water-water-bong added the tprs-ready TPRS: review verdict READY posted by the standing reviewer; merge gate satisfied label Nov 1, 2026
@github-actions

github-actions Bot commented Nov 1, 2026 •

Copy link
Copy Markdown

PR Reviewer Guide 🔍

(Review updated until commit d18ad9b)

Here are some key observations to aid the review process:

🎫 Ticket compliance analysis 🔶

707 - Partially compliant

Compliant requirements:

  • The appliance menu is now readable on the board's display with a larger 16x32 font
  • The console uses fbcon=font:TER16x32 to set the large font at boot
  • The highlight bar now covers the full row width including all columns
  • The serial console output remains unchanged

Non-compliant requirements:

  • None

Requires further human verification:

  • None
⏱️ Estimated effort to review: 2 🔵🔵⚪⚪⚪
🧪 No relevant tests
🔒 No security concerns identified
⚡ Recommended focus areas for review

Potential Padding Issue

The padding logic in the menu selection bar may not properly handle cases where the terminal width is very small or where the content exceeds the terminal width, potentially causing display issues or truncation of menu items.

p_txt=$(printf '> %s  %-10s  %s' "$p_k" "$p_lab" "$p_hint")
while [ "${#p_txt}" -lt $((COLS - 2)) ]; do p_txt="$p_txt "; done
printf '  %s%s%s\033[K\n' "$REV" "$p_txt" "$RESET"

@github-actions

github-actions Bot commented Nov 1, 2026

Copy link
Copy Markdown

Persistent review updated to latest commit d18ad9b

@bong-water-water-bong bong-water-water-bong left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

VERDICT: READY

Re-confirmed at the current head. The author patch is unchanged from the head I reviewed — the delta since then is the rest of this stack arriving through rebases (#719's serial-log fix and its neighbours), which I have reviewed and re-verdicted in their own PRs. So everything in my earlier verdict on this PR applies unchanged at this head, including what I recorded there as not-verified-by-me (the QEMU gate).

tprs-ready stands.

@bong-water-water-bong
bong-water-water-bong merged commit eea56cb into osv2/704-image-version Nov 1, 2026
3 checks passed
@bong-water-water-bong
bong-water-water-bong deleted the osv2/707-console-font branch November 1, 2026 04:27
@bong-water-water-bong

Copy link
Copy Markdown
Collaborator Author

Superseded by #742 — the same reviewed content as one commit on origin/main (+598 −63, six files in os/mini/), because #721/#725/#727 were merged into their base branches rather than main and each later branch was then built on a base that had moved (which is why #726 read CONFLICTING). Both review fixes are in #742 (/dev/kmsg transcript for #703; ls-tree HRX pin for #704). Please close this one and merge #742 so nothing lands twice.

bong-water-water-bong added a commit that referenced this pull request Nov 1, 2026
…ntity (#704) (#720)

* os: the banner and the release check read the image's own release identity (#704)

* os: the release identity reports the HRX pin, not the engine commit (#704)

Review of #720: `git -C third_party/hrx-system rev-parse HEAD` walks up to the parent repository when the
submodule is not checked out - the way the release lane builds - so the image shipped
'hrx-system: <engine sha>' and the '|| unknown' fallback never fired. The gitlink recorded in this tree is
the pin the release ships: `git ls-tree HEAD third_party/hrx-system`. Measured before/after below.

* os: one boot flow - countdown on the choice line, live status while DHCP and Lemonade come up (#705)

* os: a 16x32 console font and a full-width selection bar (#707) (#722)

Co-authored-by: bong-water-water-bong <[email protected]>

* os: drop the sound modules and refuse unsigned modules in mkimage (#708) (#723)

* os: a 16x32 console font and a full-width selection bar (#707)

* os: drop the sound modules and refuse unsigned modules in mkimage (#708)

---------

Co-authored-by: bong-water-water-bong <[email protected]>

* os: prepare-stick grows the data partition to the stick's full size (#706) (#724)

* os: a 16x32 console font and a full-width selection bar (#707)

* os: drop the sound modules and refuse unsigned modules in mkimage (#708)

* os: prepare-stick grows the data partition to the stick's full size (#706)

---------

Co-authored-by: bong-water-water-bong <[email protected]>

---------

Co-authored-by: bong-water-water-bong <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Review effort 2/5 tprs-ready TPRS: review verdict READY posted by the standing reviewer; merge gate satisfied

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant