Message ID | 20240202065608.14019-7-jirislaby@kernel.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-49321-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:9bc1:b0:106:209c:c626 with SMTP id op1csp251085dyc; Thu, 1 Feb 2024 22:58:12 -0800 (PST) X-Google-Smtp-Source: AGHT+IG9F7GJnH2LMTogGm29hOhVt48h1qJIUNfgMi4nm5pXimX00VEkn1hjeXPycaYzOA4fzLOe X-Received: by 2002:a05:620a:673:b0:783:bd16:e46a with SMTP id a19-20020a05620a067300b00783bd16e46amr4665797qkh.58.1706857091920; Thu, 01 Feb 2024 22:58:11 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706857091; cv=pass; d=google.com; s=arc-20160816; b=Rj+G2Uy86HuROSDi8YCOZFeYFDfaTXeItD3xlXxskX37FkVcQXPwlENQeSv9EbjpsH TAmVOflOEeKzkBU2YP0cTp3sShNHd6iZlMbkeauEqZRmS5sz0AREom5kYhlHtPAIrvis exlUyFQZoFCVhYoPKI2wGLaloPnV6Wpg+AENSDnq+le0N1vCRXQw2AvsM4Y+rV5BGOVd zDLcnE1AdZqLFi9BhhQCFTRhB5XSPuDdRxbENwsuSoPqs2FrKMxKUwxvRZ9e4Jdj93Aa wby4WYno7O4cRZt32OVKwuoVZBfFgq2yic5FaDEEMDAUQWFMcyxl5OwGAVcENY0shFZ3 71RA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=L6Gz9pa25UAuusC3IJg0a85Rvo2yETDvNMD+itEiiKg=; fh=ReA7TK6SyyINoXpmXLBaQiYh4OVqXlrExlttGO1S6xg=; b=NCfNce19aTfcT+i7e/nmLKaUuPIu5+i4YEymF6+3Kl0ZZI8xjAuzK1pENbUE/oxFG/ yDuHuKSlIILAFe9ALXplqbSeSA6h8DKD99CARL8orMxmV76iMnPO6sBasz+rNkpR4zDG T+9Vfq9AGxB8kCMZQLLIcEzNH5Hx24WDIEjY1S4e/DbfvFmIqEJ/dacuPjwItGXZlAX1 YM6LRWXWdRncAP4eQ3aL+KAT8+xblT7H4X69psAyXuiUenOGibWLq63yqtVUhWRZmD+s KjXDHIo+yw5pl62gi2ePyI/HEZI5q/DY3zON4/HQfLVCgpJ2AkTq58sk5bX62lcCoELR cTOw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Xbqoliew; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-49321-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-49321-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org X-Forwarded-Encrypted: i=1; AJvYcCWA3cbnf0zyvQ7wJqQt0i56Hyj2TiFeMXHW6vshsh6yG2tzEoDoUKx6rJvVlFuktfk2XumArlm72OC2ohe0RAVBwmis6Q== Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id d2-20020a05620a166200b0078349f5b7c7si1387467qko.559.2024.02.01.22.58.11 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Feb 2024 22:58:11 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-49321-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Xbqoliew; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-49321-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-49321-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id B28DE1C243B2 for <ouuuleilei@gmail.com>; Fri, 2 Feb 2024 06:58:11 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6233518E28; Fri, 2 Feb 2024 06:56:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Xbqoliew" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7C23B18635; Fri, 2 Feb 2024 06:56:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706856981; cv=none; b=U/Fw38bDADxMiYXRFGPQtSitxVPNUbdRNCM+JnMaCK5Bip7YkBkQklqsjg3u6VSBjkVWXUrQ5F0umq6DkBpb7QiQViK6QrWG12w6VtcEnOEkA9xvLKndM9I+RiRGqnecMlHh7sMNVJViQgR/DnXvNPeWYn1vHjH6xqFuOAcTmzY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706856981; c=relaxed/simple; bh=JA1mO7mmkQWRWZ2IXS92LNrizm+dnPGK0g9gxxuO5o4=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=JcOjopFqFo0pFpitRURETXXb3mIIpe2TS7RRtwVrZmxuK4csDZnVHvCjOxBriyaBZxffHumrYyYuGQmgT/cDNHC4ZfInr/OMPoxc/LWd2xjemV25hr8TEP4R5a5a/NI12QKdxnfBVTUi05VKcCkgaBNYnwbcBiriCEre6oFsDPs= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Xbqoliew; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id F2738C433F1; Fri, 2 Feb 2024 06:56:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1706856981; bh=JA1mO7mmkQWRWZ2IXS92LNrizm+dnPGK0g9gxxuO5o4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=XbqoliewihlJoVWJh4154WINa0cRBw31SKQvFj8IAONpiWGCXclbNYAyEpWhSchl0 +ilOZK2FH4UpqUXAOqJSsXip7pX/gKOV7czDx1XAV/cwMl3fg7NOpd64F7RBSgdZmJ Izf/xRd83CIwBFwnL4y/kShrMds+C7LnBDIPM3ooPkNw30mUEjFlVc6xPANg3tQ0Kz 2SWIvwKNAQJ6wjgqN3RmZAvk3OUnDSWgmRGPmLzEidgCl7fZtkmEQGkY/T4xFfv6s9 RZqyg5Yeb/24tJQwa11gUHmllx5rzoEHE8DqJeri58mv6lQ9edSrT4NCgsp9O76nz2 yiSAfK4GsEGfA== From: "Jiri Slaby (SUSE)" <jirislaby@kernel.org> To: gregkh@linuxfoundation.org Cc: linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org, "Jiri Slaby (SUSE)" <jirislaby@kernel.org> Subject: [PATCH 06/22] tty: vt: move CSI+n handling along to other ECMA CSIs Date: Fri, 2 Feb 2024 07:55:52 +0100 Message-ID: <20240202065608.14019-7-jirislaby@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240202065608.14019-1-jirislaby@kernel.org> References: <20240202065608.14019-1-jirislaby@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1789769382040413963 X-GMAIL-MSGID: 1789769382040413963 |
Series |
tty: vt: cleanup ESC sequences handling
|
|
Commit Message
Jiri Slaby
Feb. 2, 2024, 6:55 a.m. UTC
CSIs without [<=>?] modifiers (ECMA) are handled in the switch-case
below this DEC switch+case handler. So move this ECMA CSI+n there too as
it fits there better.
Signed-off-by: Jiri Slaby (SUSE) <jirislaby@kernel.org>
---
drivers/tty/vt/vt.c | 14 ++++++--------
1 file changed, 6 insertions(+), 8 deletions(-)
diff --git a/drivers/tty/vt/vt.c b/drivers/tty/vt/vt.c index 69ebce0878f2..04d109464994 100644 --- a/drivers/tty/vt/vt.c +++ b/drivers/tty/vt/vt.c @@ -2412,14 +2412,6 @@ static void do_con_trol(struct tty_struct *tty, struct vc_data *vc, int c) return; } break; - case 'n': - if (vc->vc_priv == EPecma) { - if (vc->vc_par[0] == 5) - status_report(tty); - else if (vc->vc_par[0] == 6) - cursor_report(vc, tty); - } - return; } if (vc->vc_priv != EPecma) return; @@ -2506,6 +2498,12 @@ static void do_con_trol(struct tty_struct *tty, struct vc_data *vc, int c) case 'm': csi_m(vc); return; + case 'n': + if (vc->vc_par[0] == 5) + status_report(tty); + else if (vc->vc_par[0] == 6) + cursor_report(vc, tty); + return; case 'q': /* DECLL - but only 3 leds */ /* map 0,1,2,3 to 0,1,2,4 */ if (vc->vc_par[0] < 4)