Skip to content

Invert margin colors when terminal is inverted

David Lechner linux-fbdev lkml oe-lkp 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v2 Latest2 patches 2 repliesIn review

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2fbcon: Invert margin colors when terminal is inverteddrivers/video/console/bitblit.c drivers/video/console/fbcon_ccw.c drivers/video/console/fbcon_cw.c +1 more+4 -40 replies
2/2fbcon: add VT notifier for VT_UPDATE eventdrivers/video/console/fbcon.c+28 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/2] Invert margin colors when terminal is inverted

This is v2 of "fbcon: Use background color for margins​"[1].

It turns out that using the text background color was not a good choice. So, I've started over.

In this series, the margin color depends on the terminal's inversion state. If it is not inverted, then the margins are black as they currently are. But now, if the terminal is inverted, the margin color is also inverted, so it is white.

In order to detect when the terminal is inverted, I had to add a notifier callback for the VT_UPDATE event. Otherwise, running setterm -inverse on would not change the margins until I also ran clear.

[1]: https://patchwork.kernel.org/patch/9869421/

David Lechner (2):
fbcon: Invert margin colors when terminal is inverted
fbcon: add VT notifier for VT_UPDATE event

 drivers/video/console/bitblit.c   |  2 +-
 drivers/video/console/fbcon.c     | 28 ++++++++++++++++++++++++++++
 drivers/video/console/fbcon_ccw.c |  2 +-
 drivers/video/console/fbcon_cw.c  |  2 +-
 drivers/video/console/fbcon_ud.c  |  2 +-
 5 files changed, 32 insertions(+), 4 deletions(-)
Signature · 1 line
2.7.4