From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751610AbdGaTKC (ORCPT ); Mon, 31 Jul 2017 15:10:02 -0400 Received: from vern.gendns.com ([206.190.152.46]:35886 "EHLO vern.gendns.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750971AbdGaTJ7 (ORCPT ); Mon, 31 Jul 2017 15:09:59 -0400 From: David Lechner To: linux-fbdev@vger.kernel.org Cc: David Lechner , Bartlomiej Zolnierkiewicz , linux-kernel@vger.kernel.org Subject: [PATCH v2 0/2] Invert margin colors when terminal is inverted Date: Mon, 31 Jul 2017 14:09:43 -0500 Message-Id: <1501528185-9976-1-git-send-email-david@lechnology.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - vern.gendns.com X-AntiAbuse: Original Domain - vger.kernel.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - lechnology.com X-Get-Message-Sender-Via: vern.gendns.com: authenticated_id: davidmain+lechnology.com/only user confirmed/virtual account not confirmed X-Authenticated-Sender: vern.gendns.com: davidmain@lechnology.com X-Source: X-Source-Args: X-Source-Dir: Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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(-) -- 2.7.4 From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Lechner Date: Mon, 31 Jul 2017 19:09:43 +0000 Subject: [PATCH v2 0/2] Invert margin colors when terminal is inverted Message-Id: <1501528185-9976-1-git-send-email-david@lechnology.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: quoted-printable To: linux-fbdev@vger.kernel.org Cc: David Lechner , Bartlomiej Zolnierkiewicz , linux-kernel@vger.kernel.org This is v2 of "fbcon: Use background color for margins=E2=80=8B"[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 n= ow, if the terminal is inverted, the margin color is also inverted, so it is wh= ite. 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(-) --=20 2.7.4