helloSystem / ISO

helloSystem Live and installation ISO
https://github.com/helloSystem/
BSD 3-Clause "New" or "Revised" License
805 stars 59 forks source link

Enter the text console Mode when shutting down and add a white screen to cover it #520

Open louies0623 opened 10 months ago

louies0623 commented 10 months ago

This will appear during startup or shutdown. It is not very good-looking. It should be a solid color block and put the cursor at the front. 20230904_114203

probonopd commented 10 months ago

This would need to be addressed in FreeBSD; I can do nothing about it.

louies0623 commented 10 months ago

I want to make an unrelated guess, maybe it is very wrong. The previous version was Boot splash and originally had a black background and white pictures. However, after the color flipping of the later versions, you will find that the pictures become black instead of what you think gray, so you are adding white and transparent again, I want to ask if this is the case.

probonopd commented 10 months ago

Well, on my system both the boot and the shutdown are gray, so I don't know why it is not working on some machines. In general, setting the colors of the text console should last for the entire session (boot and shutdown), we are not setting the colors more than once.

louies0623 commented 10 months ago

Otherwise, it might be left over from the white faded animation. This is just a guess.

louies0623 commented 10 months ago

The better news is that with your new file manager "boot -v" it doesn't show that thing.

However, there is still this problem. 20230905_170054 20230905_170218 20230905_170214

louies0623 commented 10 months ago

https://forums.freebsd.org/threads/colorize-your-bsd-shell.85458/ Maybe this can help.

probonopd commented 10 months ago

Yes, it might work to set the foreground color to "black" like the background. ("Black" is light grey in our case.) echo -e "\e[30m" or echo -e "\x1b[30m"... something like that.

Before this line: https://github.com/helloSystem/ISO/blob/5ab610da48912e06fa669d4e075cd8d143adefdd/settings/script.hello#L354

louies0623 commented 9 months ago

https://forums.freebsd.org/threads/how-to-change-background-color-of-freebsd-terminal.69893/ This is another possible solution found.

probonopd commented 9 months ago

Yes. It would be helpful if you could them and let me know if you have found a working one. Thanks!

louies0623 commented 9 months ago

Sorry, it was my fault again. I thought there was a transparent mask or something, but when I encountered this, it proved that I was wrong again. It was a color filling problem, not a transparency problem. If the text is different from The cursor color is consistent with the background, will it be hidden? 20230910_225602

louies0623 commented 9 months ago

Only this time did I realize that it was the text and background of the text console Mode. We didn’t need to adjust it at all. Instead, it should have a white overlay.

louies0623 commented 9 months ago

And we need to avoid changing the font color of the text console Mode, because this will make the text console Mode use user methods.

probonopd commented 9 months ago

I don't quite understand. When booted in verbose mode, the messages during boot and shutdown should look similar to this:

image