-
Notifications
You must be signed in to change notification settings - Fork 58
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow bootloader to react to certain keys #187
Comments
The desired behavior is described in https://support.apple.com/en-us/HT201255
Do you know how to achieve this in Forth? |
Why did you change my title? We need something sooner than the luxury of snag keys. 35e19f2 reduces the usability of boot environments; makes things potentially difficult for end users.
Why not Alt? |
Because Command+S stands for If technically possible, it would be great if we could use Command+B+Et o go to the (On PC keyboards, we use Alt as the Command key. On Mac keyboards, we use the Apple key as the Command key. Command stands for "the key on the left side to the space bar" as far as I am concerned.) |
For a moment, forget the Command key. Alt is used by Apple with Apple keyboards with Mac hardware. |
Actually, https://support.apple.com/en-us/HT201255 says
|
Some disorientation from the change of title, which was not intended to focus on safe mode or single user mode. To refocus on what was originally in my title, I simply want a method to present:
– from there, people can step to safe mode, single user mode and so on; most importantly, boot environments. Corrected above. It's Alt (not Alt-S): (The mid-sentence uppercase S is quite un-British. I misread it as part of the shortcut.) |
I agree that this would be cool. |
has But the question is, can we do everything in Forth without compilation? That would probably mean to not skip Beastie altogether, but to modify Beastie to show up even if Probably we would have to hook this in around here: Does anyone know any Forth? |
This comment has been minimized.
This comment has been minimized.
Got this information:
|
I would like to allow users to boot in verbose mode by just pressing the v (ASCII 76) key. Added a file
Unfortunately I can't seem to get it to work. ( |
Maybe we need to patch
|
Out of the box, pressing The bootloader probably needs to be changed so that the "The bootloader" being
Is "freebsd-src/stand" the source of the bootloader? (What does Maybe @kevans91 knows how to do that? |
By the way,
That does not seem to work for me. Hence I set it to
|
Yes, stand/ is where the loader lives ([stand]alone, iirc). I definitely haven't implemented any sort of key tracking while loadelf is operating in lualoader (stand/lua substantially), so it makes sense that that doesn't work. You can still solve that entirely in lualoader, we just don't do that at the moment; lualoader's what handles the interrupt of autoboot typically. |
Time to learn Lua then. Has been on my TODO list for a long time anyway :-) Just to be sure: When I press any key before the "Loading kernel..." message, then I am still able to catch that in Lua without being dropped to the |
Finally came around to wrapping my head around lua. It's great! Thanks a lot @kevans91. ISO/overlays/boot/boot/lua/local.lua Lines 35 to 36 in 27acc69
The way it is working right now is that the user has to press one of the keys Only thing I didn't figure out is how to get at the keyboard buffer, so that I could detect whether certain keys had been pressed by the user before the start of the execution of my lua script. I think the bootloader can do that for detecting whether |
Safe mode
From #103 (comment):
Boot environments
From #55 (comment):
Until user-friendly silence can be achieved with helloSystem:
Blocking normal presentation:
35e19f2
Reference
https://cgit.freebsd.org/src/tree/stand/forth/loader.4th
https://cgit.freebsd.org/src/tree/stand/forth/beastie.4th
beastie.4th(8)
FreeBSD bug 254431 – beastie.4th(8) is no longer ASCII art
The text was updated successfully, but these errors were encountered: