Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3104888imu; Fri, 18 Jan 2019 05:01:34 -0800 (PST) X-Google-Smtp-Source: ALg8bN4y/FCrIsopOKzV/Fxw1hJhjefZxRJNQqBblgji5Vi8vlA8/5gELABEdmjVxYOL6sFha86C X-Received: by 2002:a63:e516:: with SMTP id r22mr17802541pgh.256.1547816494205; Fri, 18 Jan 2019 05:01:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547816494; cv=none; d=google.com; s=arc-20160816; b=NTafASrzxxjMknucRK0g3fQoGVFxefFssei1h3m8aD5WpR0mvZwFe8+TTxYWgXL75R ebpco3IUJsgZ+ljUncKz+19VO5KOqG7fYdzbZztE/YphVgLg72xD9y8/2RAxcCDWH7mM AgmOU0dW0D/4ETUPBHIRHvIOGXgNnjmD2OzQhxLsecJ7A7dWcvSQYycShkLu32E4XrD6 qL3fpDE7OqV7iCeLSdR+jx95hdasI/CTIOq8KfqwUV0A+fg+eu48e1wszGQK58aNeUMX IvGINTIs09CTx7vHhGHbu2TmZepSCc+JqGDTLI2kzAKps75L2gKkk/ZiuLodxrzwJ6pH du7g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=rybZW6jHXQ5/+all8LKsV6VXe4XJ/bQEUK8EtudpOc0=; b=MvWaABiv8FPpOypGz382eBxCUwaA25Q+CPNk7JvvMQ0+upxPXxmkiLD0jVNgjftGoa cvRKWilgBUai+pGsdlcLF5yzzg8vZMLTqU5ozL9cXTzehoumVLFLWUf/Xsf3Nt4db4z6 f95CLgqWCHnGMI+UbId79RA6ccKPgzvdKQ3XplU0s9G9+/aKMDDWBcE4aauSmfZ0N2oA 9QPKBRiHB0Ra63deLX/AnJ8D0pUXYxbKpZSZhRurREtbIT9zBAp4MD/P8uFapw+akrjC qJGOSa4pD0wzAEoyoHHCzm/mE9Ci54ArWoIymINqM50wJmuI+mVZsX8NCvSnL6TKrG2q c+8w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=sgoCeRnm; 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 k33si4557066pld.374.2019.01.18.05.01.18; Fri, 18 Jan 2019 05:01:34 -0800 (PST) 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; dkim=pass header.i=@kernel.org header.s=default header.b=sgoCeRnm; 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 S1727868AbfARM7G (ORCPT + 99 others); Fri, 18 Jan 2019 07:59:06 -0500 Received: from mail.kernel.org ([198.145.29.99]:38284 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726062AbfARM7F (ORCPT ); Fri, 18 Jan 2019 07:59:05 -0500 Received: from localhost (5356596B.cm-6-7b.dynamic.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id DD2D52087E; Fri, 18 Jan 2019 12:59:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1547816345; bh=RvA9lA2OCGbK3FV4TwO1VeLPNa6fBsc8mH2j4JhIOVs=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=sgoCeRnmEjk2/3ebPa9CP0X9h45DnbbUCq3IKopEGJTomLUXc7RdleE8ZGUoVJ0ZT p1JGQeiel80JzdOCQZCRjWWYdb01xOICjsOaqp0fXhhQU3EhFZDoCdyIKeQwh7ibzX 7defUW3LLq3+txENJdvXLZvvrzSKqiezhA2PdbE4= Date: Fri, 18 Jan 2019 13:59:03 +0100 From: Greg Kroah-Hartman To: Martin Hostettler Cc: Jiri Slaby , linux-kernel@vger.kernel.org, linux-api@vger.kernel.org, Nicolas Pitre , Adam Borowski , Egmont Koblinger Subject: Re: vt: Improve CSI parsing Message-ID: <20190118125903.GA18489@kroah.com> References: <20181215143423.4556-1-textshell@uchuujin.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181215143423.4556-1-textshell@uchuujin.de> User-Agent: Mutt/1.11.2 (2019-01-07) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Dec 15, 2018 at 03:34:19PM +0100, Martin Hostettler wrote: > This patch series improves parsing of csi sequences to be more compliant > with current practice. > > ECMA-64 defines the format of CSI sequences which allow more characters > than what the vt parser currently accepts. More importantly many of > these characters are used in sequences that more capable terminal > terminal implementations use. > > Adjust the parsing of CSI sequences to match xterm* by ignoring all > unknown sequences of the form > (ESC [)|CSI [\x20-\x3f]*[\x40-\x7e] > > This avoids printing unwanted characters when application send valid > sequences not supported by linux either while querying the terminal for > it's identity or when applications print sequences without knowing what > terminal implementation they are connected to (e.g. when connected over > serial lines, android's adb, simple tcp connects, etc) > > * and other common terminals Thanks for these, now queued up. greg k-h