Repository navigation
os: a 16x32 console font and a full-width selection bar (#707) - #722
Conversation
bong-water-water-bong
left a comment
There was a problem hiding this comment.
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.
03aee78 to
664abc2
Compare
PR Reviewer Guide 🔍(Review updated until commit d18ad9b)Here are some key observations to aid the review process:
|
86dbe7e to
9c9a260
Compare
664abc2 to
d18ad9b
Compare
|
Persistent review updated to latest commit d18ad9b |
bong-water-water-bong
left a comment
There was a problem hiding this comment.
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.
|
Superseded by #742 — the same reviewed content as one commit on |
…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]>
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 fontfile, 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.