Page MenuHomeFreeBSD

loader: Fix boot menu on BIOS
ClosedPublic

Authored by imp on Sat, Nov 2, 4:33 PM.
Tags
None
Referenced Files
F103147419: D47403.id145892.diff
Thu, Nov 21, 2:59 PM
F103141370: D47403.id145907.diff
Thu, Nov 21, 1:33 PM
F103112160: D47403.id145890.diff
Thu, Nov 21, 4:12 AM
Unknown Object (File)
Fri, Nov 15, 8:40 AM
Unknown Object (File)
Fri, Nov 15, 12:07 AM
Unknown Object (File)
Sun, Nov 10, 8:46 PM
Unknown Object (File)
Thu, Nov 7, 5:40 AM
Unknown Object (File)
Thu, Nov 7, 5:35 AM

Details

Summary

Only the gfx-enabled boot loader supports unicode. Otherwise, we have to
use the old cons25 / ibmpc upper code page drawing characters. Check to
see if we have the gfx.term_drawbox function. If we do, we support the
unicode drawing characters. If we don't, then we have an older loader
that doesn't support it *OR* we have the reduced function, text-only
boot loader. Either way, we need to use the old graphics characters.

Sponsored by: Netflix

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 60350
Build 57234: arc lint + arc unit

Event Timeline

imp requested review of this revision.Sat, Nov 2, 4:33 PM

Tested successfully on a laptop: first, running stable/14-n269448-4e8444d5750a, then running main-n273387-bb8b3b174118.

Update to move these knowledge into core.hasUnicode() in case
other issues like this crop up, or in case we export this knowledge
more directly.

better comment
also remove comment from where we create old bindings:
with this new setup they aren't relevant.

emaste added inline comments.
stand/lua/core.lua
548
This revision was not accepted when it landed; it landed in state Needs Review.Sat, Nov 2, 10:03 PM
This revision was automatically updated to reflect the committed changes.

Thank you for coming up with the solution. I can confirm that it fixes the issue for sc(4). Please don't hesitate to push it, preferably shortly.
Edit:
Wow.... already committed. Impressive timings!