Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1700245
| From | David Lechner <david@lechnology.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH] fbcon: Use background color for margins |
| Date | 2017-07-31 19:30 +0200 |
| Message-ID | <u9mG0-DO-65@gated-at.bofh.it> (permalink) |
| References | <u8k3v-5Y-5@gated-at.bofh.it> <u8T1g-71m-21@gated-at.bofh.it> <u92xA-4C8-23@gated-at.bofh.it> <u94pI-5OJ-27@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On 07/30/2017 04:51 PM, Pavel Machek wrote: > Hi! > >>>> Screens that don't have a black border around the active area will have >>>> ugly black bars for the margin when the text background color is not black. >>>> This is especially noticeable on an LCD screen (not the backlit kind) when >>>> the terminal colors are inverted. >>> >>> Are you sure? >> >> Of course I am sure. Otherwise I would not send a patch. ;-) >> >> I have attached some pictures to explain it better. The default-console.jpg >> picture shows what it looks like using just defaults. I think it is hard to >> read the white text with the black background. >> >> So, the solution is to invert the terminal colors. But when you do this, the >> margins are not inverted, so you are left with black bars on the bottom and >> the right as seen in inverted-without-patch.jpg. >> >> With this patch applied, the margins are also inverted, so you don't have >> the black bars as seen in inverted-with-patch.jpg. I think this is much >> nicer. >> >> It is quite common to have different backgrounds in >>> different parts of the screen, how it is supposed to work there? >> >> There will be nothing different in this regard. Only the margins (non-text >> area) are changed. > > So you have something like midnight commander, which uses colors. > > Lets say top half of screen is normal, bottom one is inverted. What > color will borders be? > > Will not they do something stupid (such as changing) when the > curses-based application refreshes? > Ah. I see what you mean now. The margin will be whatever is set for the vc_video_erase_char in the kernel, which can be changed by userspace. I tried midnight commander and sure enough, I still have the black margins when I invert the screen (`setterm -inverse on`). Interestingly, after allowing the console to blank after a timeout, the console was blanked with white, then after pressing a key to unblank, the margins were also white. So, scratch this one. I will re-evaluate and send a new patch.
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH] fbcon: Use background color for margins David Lechner <david@lechnology.com> - 2017-07-28 22:30 +0200
Re: [PATCH] fbcon: Use background color for margins Pavel Machek <pavel@ucw.cz> - 2017-07-30 11:50 +0200
Re: [PATCH] fbcon: Use background color for margins Pavel Machek <pavel@ucw.cz> - 2017-07-31 00:00 +0200
Re: [PATCH] fbcon: Use background color for margins David Lechner <david@lechnology.com> - 2017-07-31 19:30 +0200
Re: [PATCH] fbcon: Use background color for margins Adam Borowski <kilobyte@angband.pl> - 2017-07-31 23:20 +0200
csiph-web