From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [212.224.123.68]) by lore.proxmox.com (Postfix) with ESMTPS id AE3161FF16B for ; Fri, 26 Sep 2025 10:04:18 +0200 (CEST) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id DAF849E3D; Fri, 26 Sep 2025 10:04:48 +0200 (CEST) To: pve-devel@lists.proxmox.com Date: Thu, 25 Sep 2025 08:15:40 +0200 In-Reply-To: <20250823083010.145866-1-aclopte@gmail.com> References: <20250823083010.145866-1-aclopte@gmail.com> X-Mailman-Approved-At: Fri, 26 Sep 2025 10:04:47 +0200 MIME-Version: 1.0 Message-ID: List-Id: Proxmox VE development discussion List-Post: From: Johannes Altmanninger via pve-devel Precedence: list Cc: Johannes Altmanninger X-Mailman-Version: 2.1.29 X-BeenThere: pve-devel@lists.proxmox.com List-Subscribe: , List-Unsubscribe: , List-Archive: Reply-To: Proxmox VE development discussion List-Help: Subject: [pve-devel] [PATCH vncterm v2 1/3] Remove unused state from OSC parser Content-Type: multipart/mixed; boundary="===============5739244174633737071==" Errors-To: pve-devel-bounces@lists.proxmox.com Sender: "pve-devel" --===============5739244174633737071== Content-Type: message/rfc822 Content-Disposition: inline Return-Path: X-Original-To: pve-devel@lists.proxmox.com Delivered-To: pve-devel@lists.proxmox.com Received: from firstgate.proxmox.com (firstgate.proxmox.com [212.224.123.68]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by lists.proxmox.com (Postfix) with ESMTPS id 5FC60D56C1 for ; Thu, 25 Sep 2025 08:17:11 +0200 (CEST) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 4759F17778 for ; Thu, 25 Sep 2025 08:17:11 +0200 (CEST) Received: from mail-ed1-x531.google.com (mail-ed1-x531.google.com [IPv6:2a00:1450:4864:20::531]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by firstgate.proxmox.com (Proxmox) with ESMTPS for ; Thu, 25 Sep 2025 08:17:10 +0200 (CEST) Received: by mail-ed1-x531.google.com with SMTP id 4fb4d7f45d1cf-63053019880so1172296a12.0 for ; Wed, 24 Sep 2025 23:17:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1758781024; x=1759385824; darn=lists.proxmox.com; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=ZeXJ1rDieuL+XbU9F89xgvanICzekJVnpROZ8M9OWmU=; b=hsW4y1iekl4qsDdXJpxD9nRan8yar+3899haZNLozEgVmh/oopuVDs7kGJrSZwCPA1 lGnGgNnSddqeZz6xF8mhbZ4qhRwzkBBVp7Ju7St278l9HXNr0vivGPVxHdDDug3WxwG8 4pVAVmwcPc3TMqry+T0H/z1djPg5U6BsoqlfoG9njnR/x5jrD3B9ZOaDNNjSYZX3+1US DgynPKL/XLqT/byZbOoohNkY2FGW7M8NH3VVuoVYQm4hc0Q3FazCERosyZFwvMGSbEYl UZ4ZyVpbwHOtFMr+ZWXXeWjqCmJwEvYKM6G0sxU2FAobAAI1lv9D6bjbXw/hI91T/INb N3Bg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1758781024; x=1759385824; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=ZeXJ1rDieuL+XbU9F89xgvanICzekJVnpROZ8M9OWmU=; b=ZZ+OxLK8nWQl14UjRgFfjqmQHh3PJDZvoPP/1SgLIzULSfYdoGUFfE6Wz3Sy3ZCO3T +gJVz0mbpaze3V2AvamcU/HbXENkyD+zsfnxv1+M6GRmpeX8dIiZ98CA9F1nJc7i8aXk 6zXEdfodajt1p2kvPxTBskLmU1piF9pADEruJiwHB0+k0vJlNciCSS7eZ9bjINLbqDgX lpJjMjPnpiqEoYHxGzN7x6ZKtMUjqCqs/T0geV08LvH8oL1CQR9KaJnFA7dTL4M9nlu6 09trSIR7KDh0PIIvINZ54eKnLO8YgY9HILQ9q5RaTf2PSL10jqm7XRbIYI+i7I1DkdRF UCAQ== X-Gm-Message-State: AOJu0YyD3smg3Ot7pMeF+9l1U4aS2zZVviRHcCJEjgE12DA9VDMRh3t+ Lm63qFACc6rzT158sMsiSbffglUvZltWdbeMOdUMNqLSBp+jpKtnOfHaRtSHeJdp X-Gm-Gg: ASbGnctqt5MjSOEvTuB1QvRKY1Rz6oJ4GA5uQnaiO4CYBMZAfYU1GRZZ9irlUB/xI6x sK44/YIlaIJPGbmixyG22CCrf06ZcTljJhU7yqqXxNT/Hys2NKPQdffczGQT9OnESEVGpHuj/au rVlh/HT0ajDxIL6qDw9eRn9+jr0IcjYG6VRvPjUch+MgmqUn/qZqvRllyIhozH3RcxnYNf8aiiD +vU4PFvuTXKh5mHYmBaAjR5+Q2qh9rOJ0VD00wmYIuA69rBrBHCKiOMllakz8WFLmlYqmLWQ+l2 m4MNsn25hkb3GbbbcmsjKUmHwSzd7V4LWpz07ltdvaZL+A4RtVwQzz5wMhQrFT13Dzs+h8pTacU sFpyj1b0WSwKNcy4BcvK1IGSl/KIBiqDM8SNsrImdLSMSn3m6RY3JElaDQ6eySuVR+KxXX2qF/d /yTA== X-Google-Smtp-Source: AGHT+IF7kwNr41F0Sf9bG9TK+YtR2+qD0BuEFxwAgnx/lz8hfCQHeOT74TDZHNtYNbZ4rJwVm1ZjDw== X-Received: by 2002:a17:907:96a9:b0:b2b:a56f:541a with SMTP id a640c23a62f3a-b34b91a363cmr216449166b.7.1758781023892; Wed, 24 Sep 2025 23:17:03 -0700 (PDT) Received: from localhost.localdomain (213162081129.public.telering.at. [213.162.81.129]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-b353efa4c6dsm96905566b.30.2025.09.24.23.17.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Sep 2025 23:17:03 -0700 (PDT) From: Johannes Altmanninger To: pve-devel@lists.proxmox.com Cc: Johannes Altmanninger Subject: [PATCH vncterm v2 1/3] Remove unused state from OSC parser Date: Thu, 25 Sep 2025 08:15:40 +0200 Message-ID: <20250925061600.11818-1-aclopte@gmail.com> X-Mailer: git-send-email 2.51.0.167.g6ad8021821.dirty In-Reply-To: <20250823083010.145866-1-aclopte@gmail.com> References: <20250823083010.145866-1-aclopte@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SPAM-LEVEL: Spam detection results: 0 BAYES_00 -1.9 Bayes spam probability is 0 to 1% DKIM_SIGNED 0.1 Message has a DKIM or DK signature, not necessarily valid DKIM_VALID -0.1 Message has at least one valid DKIM or DK signature DKIM_VALID_AU -0.1 Message has a valid DKIM or DK signature from author's domain DKIM_VALID_EF -0.1 Message has a valid DKIM or DK signature from envelope-from domain DMARC_PASS -0.1 DMARC pass policy FREEMAIL_FROM 0.001 Sender email is commonly abused enduser mail provider RCVD_IN_DNSWL_NONE -0.0001 Sender listed at https://www.dnswl.org/, no trust SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record X-Mailman-Approved-At: Fri, 26 Sep 2025 10:04:47 +0200 Signed-off-by: Johannes Altmanninger --- vncterm.c | 18 +++++------------- 1 file changed, 5 insertions(+), 13 deletions(-) diff --git a/vncterm.c b/vncterm.c index 8b9e6ce..71baa65 100644 --- a/vncterm.c +++ b/vncterm.c @@ -1195,8 +1195,7 @@ enum { ESnonstd, ESpalette, ESidquery, - ESosc1, - ESosc2 + ESosc, }; static void vncterm_putchar(vncTerm *vt, unicode ch) { @@ -1276,7 +1275,7 @@ static void vncterm_putchar(vncTerm *vt, unicode ch) { case '1': case '2': case '4': - vt->tty_state = ESosc1; + vt->tty_state = ESosc; break; default: #ifdef DEBUG @@ -1286,18 +1285,11 @@ static void vncterm_putchar(vncTerm *vt, unicode ch) { break; } break; - case ESosc1: - vt->tty_state = ESnormal; - if (ch == ';') { - vt->tty_state = ESosc2; - } else { + case ESosc: + if (ch == 0x9c || ch == 7) { #ifdef DEBUG - fprintf(stderr, "got illegal OSC sequence\n"); + fprintf(stderr, "OSC sequence\n"); #endif - } - break; - case ESosc2: - if (ch == 0x9c || ch == 7) { vt->tty_state = ESnormal; } break; -- 2.51.0.167.g6ad8021821.dirty --===============5739244174633737071== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ pve-devel mailing list pve-devel@lists.proxmox.com https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel --===============5739244174633737071==--