Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp33415imm; Tue, 17 Jul 2018 20:05:30 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfEUBjgzKQr9L/8oUH1+u4yDRkOIySpMbbZK2GAk3rfAHyAMphJ6+xtgZAaiSN3o8IXP8BW X-Received: by 2002:a63:f804:: with SMTP id n4-v6mr4111638pgh.106.1531883130926; Tue, 17 Jul 2018 20:05:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531883130; cv=none; d=google.com; s=arc-20160816; b=ILihH1YiLMMpsEPp0STBehUExquOi0YoDUoety9MKN3LpIGFWfNSZPGgd9dNPj2Nho 3c/pvfFgvQVq0Jiof/E+cJqG9+yCo7t8Fclkfj8tbRSYzKRiluIcipk+1+6EJ7QZwVt1 ueOqFqskBAlxUDkgbGUPyGGYYlzbm4w7YSJpn5GbKgtLFtcn9fYpJ+b9i1dECDWI5H5R A1RTIjR19RFUjkfCBZrekRXg9cD4ClypRuzOA/++uAha+tu37+r5BpIVYeW0+0e36KCv aEbjOl52Fvk0I024QpOa9DShUqizs9oA9oVRRNKM4BZY6de5lNapMcks5XeoNZdDBKv8 /EIQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:subject:references:in-reply-to:message-id :date:cc:to:from:arc-authentication-results; bh=pQCY0q/vCjag2VEfOatkt3klbMCGMLIOLwpIlFtxvmo=; b=zElzX5KHH0sLj7AM70y6BMsGakExdLiyIC0lTjgTHI/XUdywazNNWWi/PvSTVGqkVe AmhJi5FdefSDGqqgHqgL4IxF06vngEWNBIM8tGz1w8bLijnoVNObG/Ut9+82H5MjtHeR yWhdLsa1riBvuvw4LlC3cn3AbpDbMS5uY9qsVQpAqVxFqXeWgGz5JffJBlWwlpqEZo8A 03A+ivaZkmD+R9WmFwaXi4Om1sSrbLFh2U4DqgOvfvz2SlQicq2/HpZHRVz5g4LvjqDU 0DeKL0dgHGzFiAfRqkxF8FUgH4cfRPO8eVCBQ08GA8oLi5zQpvZYQMePdWr5Eh5qDYmh lt9A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j14-v6si2405782pgh.22.2018.07.17.20.05.16; Tue, 17 Jul 2018 20:05:30 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731611AbeGRDjY (ORCPT + 99 others); Tue, 17 Jul 2018 23:39:24 -0400 Received: from tartarus.angband.pl ([89.206.35.136]:37770 "EHLO tartarus.angband.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731535AbeGRDjY (ORCPT ); Tue, 17 Jul 2018 23:39:24 -0400 Received: from 89-71-158-145.dynamic.chello.pl ([89.71.158.145] helo=umbar.angband.pl) by tartarus.angband.pl with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1ffckY-0007zJ-1o; Wed, 18 Jul 2018 05:03:38 +0200 Received: from kilobyte by umbar.angband.pl with local (Exim 4.91) (envelope-from ) id 1ffckX-0000AN-OG; Wed, 18 Jul 2018 05:03:33 +0200 From: Adam Borowski To: Greg Kroah-Hartman , Jiri Slaby , linux-console@vger.kernel.org, Bartlomiej Zolnierkiewicz , linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Adam Borowski Date: Wed, 18 Jul 2018 05:03:24 +0200 Message-Id: <20180718030327.579-3-kilobyte@angband.pl> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180718030327.579-1-kilobyte@angband.pl> References: <20180718030152.kdq53mwpdfusvwl5@angband.pl> <20180718030327.579-1-kilobyte@angband.pl> X-SA-Exim-Connect-IP: 89.71.158.145 X-SA-Exim-Mail-From: kilobyte@angband.pl X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on tartarus X-Spam-Level: X-Spam-Status: No, score=-2.9 required=8.0 tests=ALL_TRUSTED=-1,BAYES_00=-1.9, TVD_RCVD_IP=0.001 autolearn=ham autolearn_force=no languages=en da Subject: [PATCH 3/6] vt: let \e[100m use bright background if unblinking X-SA-Exim-Version: 4.2.1 (built Tue, 02 Aug 2016 21:08:31 +0000) X-SA-Exim-Scanned: Yes (on tartarus.angband.pl) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Let's keep \e[5m setting this bit, it's a nice way to convey the information, and it preserves old behaviour. Some other terminals that can't or don't want to blink do so as well. Signed-off-by: Adam Borowski --- drivers/tty/vt/vt.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/tty/vt/vt.c b/drivers/tty/vt/vt.c index 45057bbf6f74..4096093c8cd2 100644 --- a/drivers/tty/vt/vt.c +++ b/drivers/tty/vt/vt.c @@ -1709,6 +1709,8 @@ static void csi_m(struct vc_data *vc) if (vc->vc_par[i] >= 90 && vc->vc_par[i] <= 107) { if (vc->vc_par[i] < 100) vc->vc_intensity = 2; + else if (vc->vc_unblinking) + vc->vc_blink = 1; vc->vc_par[i] -= 60; } if (vc->vc_par[i] >= 30 && vc->vc_par[i] <= 37) -- 2.18.0