FS#17225 - [initscripts] /etc/rc.d/functions explicit draws black backgrounds.
Attached to Project:
Arch Linux
Opened by Simon Gomizelj (simongmzlj) - Saturday, 21 November 2009, 05:08 GMT
Last edited by Aaron Griffin (phrakture) - Wednesday, 25 November 2009, 17:58 GMT
Opened by Simon Gomizelj (simongmzlj) - Saturday, 21 November 2009, 05:08 GMT
Last edited by Aaron Griffin (phrakture) - Wednesday, 25 November 2009, 17:58 GMT
|
Details
Description:
The various helper functions in /etc/rc.d/functions explicitly draw text on a black background. At boot, this is not necessary as the background is already solid black. However, when running a terminal emulator that supports custom colour schemes and transparency, this behaviour can make manipulating daemons somewhat fuggly, as the background colour or transparency is no longer honoured. The attached patch file should resolve this issue, it does two things: 1. Remove the explicitly stated black background 2. Reset the terminal colour and then set just the bold attribute, as opposed to explicit drawing white bold text The new behaviour appears to behave just like it currently does when dealing with white on black, while degrading gracefully for other colour schemes. Additional info: * package version(s) * config and/or log files etc. Steps to reproduce: 1. Change to a non-standard colour scheme (eg, black text on white background), run something like /etc/rc.d/mpd restart. The output should be invisible. |
This task depends upon
Closed by Aaron Griffin (phrakture)
Wednesday, 25 November 2009, 17:58 GMT
Reason for closing: Duplicate
Additional comments about closing: FS#16996
Wednesday, 25 November 2009, 17:58 GMT
Reason for closing: Duplicate
Additional comments about closing:
FS#16996. Dan reviewed it and found it good mostly. I don't have time to get into this right now, but we might want to close this as a duplicate. Simon, does the patch fromFS#16996solve your problem?@Glenn Matthys (RedShift)
My patch address that. For people with a white background on black foreground, it appeals as black text on white, it doesn't force the white on black look. The text becomes green on a green on black term.
Instead of drawing the message lines as bold white text, I changed it them to reset the colour and just draw bold. This respects the terminals set foreground colour without needing to resort to a explicit background, while still maintaining the current look during boot.
I attacked a screenshot as an example of what my patch does over different terminals.
FS#1186(wow, that's an old bug report)The gist of it is: by DEFAULT the rc.d output is unreadable on many default terminals that use a white background.
I will happily remove the black background if someone can come up with a colorscheme that works on a default gnome-terminal (or something else with a white background and default colors) as well as the linux console.
FS#16996- sorry for the noise. Please move discussion there