Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1700396

Re: [PATCH] fbcon: Use background color for margins

From Adam Borowski <kilobyte@angband.pl>
Newsgroups linux.kernel
Subject Re: [PATCH] fbcon: Use background color for margins
Date 2017-07-31 23:20 +0200
Message-ID <u9qgy-2Se-15@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> <u9mG0-DO-65@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Mon, Jul 31, 2017 at 12:25:28PM -0500, David Lechner wrote:
> On 07/30/2017 04:51 PM, Pavel Machek wrote:
> > > > > 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.

Also when you have multiple monitors of different resolutions (VT does
mirror them which is quite pointless, but hey, VT is meant for rescue tasks
so for fancy features you'd better use X).

I see this on nouveau which your patch doesn't handle, but we can extend it
to nouveau later.

> 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.

"setterm -inverse on" looks ugly.

I've just added reverse to my vtgamma (https://github.com/kilobyte/vtgamma),
it uses a different method (setting the palette instead of \e[?5h) which on
VT looks a lot nicer.


Meow!
-- 
⢀⣴⠾⠻⢶⣦⠀ What Would Jesus Do, MUD/MMORPG edition:
⣾⠁⢰⠒⠀⣿⡁ • multiplay with an admin char to benefit your mortal
⢿⡄⠘⠷⠚⠋⠀ • abuse item cloning bugs (the five fishes + two breads affair)
⠈⠳⣄⠀⠀⠀⠀ • use glitches to walk on water

Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread


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