From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [IPv6:2a01:7e0:0:424::9]) by lore.proxmox.com (Postfix) with ESMTPS id D50B31FF16B for ; Fri, 26 Sep 2025 10:04:29 +0200 (CEST) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id D46729F20; Fri, 26 Sep 2025 10:04:49 +0200 (CEST) To: pve-devel@lists.proxmox.com Date: Thu, 25 Sep 2025 08:15:42 +0200 In-Reply-To: <20250925061600.11818-1-aclopte@gmail.com> References: <20250823083010.145866-1-aclopte@gmail.com> <20250925061600.11818-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 3/3] Also parse DCS commands Content-Type: multipart/mixed; boundary="===============0927188991967553860==" Errors-To: pve-devel-bounces@lists.proxmox.com Sender: "pve-devel" --===============0927188991967553860== 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)) (No client certificate requested) by lists.proxmox.com (Postfix) with ESMTPS id A82ADD56DE for ; Thu, 25 Sep 2025 08:17:42 +0200 (CEST) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 8A88E1777D for ; Thu, 25 Sep 2025 08:17:12 +0200 (CEST) Received: from mail-ej1-x633.google.com (mail-ej1-x633.google.com [IPv6:2a00:1450:4864:20::633]) (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:12 +0200 (CEST) Received: by mail-ej1-x633.google.com with SMTP id a640c23a62f3a-b2ac72dbf48so99873266b.0 for ; Wed, 24 Sep 2025 23:17:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1758781025; x=1759385825; 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=gZvxbAlYE5ps3LR1wf3kpeBwYDTNWrxCt7gYJD61Y18=; b=hiQfmGvE4WDtsZ9O7BQS+KpFMw5FYyRu7iNpQ9CBzwvWWC8+5Wyi1PAUuj1zmMIlja kyRqEj33aF3rBMCB16BCyKBU6m0dojQwKiWwXxjgLWlGSksJm/7rQcsBp5g4k5hs/cGp ba1LPcPV4rFY/8dBxd0joNeKijEqfHC7XtKzX/NtgcG+AkcJcZkPjmfJRWyz564N6z5f yOm1gjskYvF4jH/d9lcHAweMOIfWGanHRUnh0VXdYc+EgEFOzj2jQmEAAtfI7MLW/uJ8 xgyUgohFvWiCQNJrhHoQqrSmXODJpqcvjbhWmMAdem2Srxrgw5AZP13R+gqgnBFdc6Q0 7E8w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1758781025; x=1759385825; 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=gZvxbAlYE5ps3LR1wf3kpeBwYDTNWrxCt7gYJD61Y18=; b=YV+fAEcuJ/HHk/LJC/jYQJfLmsVSxcK0X00jo1GcxcYSdpeteh+fywyzftFLwjSn6H 85VBhhZjUnDnQlV6QtCW5ntdrXivcUGZjwZzP0/Yu12fO8Eu3cfecbROFKbNX6UiyvjC mVQCqCHjBsibFCE5VSZrn3OliqoogdHgpgfchHkPJvhYGkPWKNJLiGEJZx7kh+MonAHu cu7a+/UfOEI3u346Z6UajkaLzfhpEJmd9XqSHzrTsbD83ULciCdchqNcQb7/hpZSmtES 3Kp/FZ3X+ui1G3JelopWRjky660QiIuY7OJ+5mBjoRmlzlmVGe3POssXBheaBCoeieaE IznA== X-Gm-Message-State: AOJu0YzNh2bd4iEa3Z7cDBePU2KYnY5MsuvRE9D78otgtbIZM1NOvC2W QkWWnR42eyFQ8Upw6ONkw4GmQSg5+czPav1xSMmwoMPubU7j6qwYkmxf77VKRN7F X-Gm-Gg: ASbGncuYwdBKzrTHrSe7pxGey1IH1BPO+P0/UAoLZ3D2EtMRCMqb1acr7+1c0nNgiyP EhiJuqgTKh0dOdkRzjiQaRdjeGfBftBvMdg0sAjaedbMa4Q+7dnsYojnM2AzlEx9RwmJQoEJIHJ 7xz+VD4t77gpXZnrETb1OFf+NCXPyX1U8vAxmxmFkLUALAOG5mT07S0hykdsjmEz5xE/Lia/C1v DBu924n4oirLj8Gu5SUyqt7l26rPmMcib/xGbM3HTmxi6LJLAgwJU3ufuv384xOZU5T54iORBE2 0EGNoQqFwoajQ5qxPfOzNHEkI0lJ/zpJmhQzOuftdTyHNGhyj6zhQKf99Vqz2MjxSKPGoIRpCuN IBnmBNqqa50Gby7gO+hJ1ySxC/znlm41k8/kyHjWJyIsLQCkLrHpi8V+Zj0yRv16pu5o= X-Google-Smtp-Source: AGHT+IEybQnBwWnrNKP403Cvs4WmwjHhf7lztAva9rnAJrs3dcMGLJZEcrT7AvHqd0pB1WZ7RiY+nw== X-Received: by 2002:a17:907:cd07:b0:b2f:f3e8:8ba8 with SMTP id a640c23a62f3a-b34b74ee12bmr230505166b.2.1758781025520; Wed, 24 Sep 2025 23:17:05 -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.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Sep 2025 23:17:05 -0700 (PDT) From: Johannes Altmanninger To: pve-devel@lists.proxmox.com Cc: Johannes Altmanninger Subject: [PATCH vncterm v2 3/3] Also parse DCS commands Date: Thu, 25 Sep 2025 08:15:42 +0200 Message-ID: <20250925061600.11818-3-aclopte@gmail.com> X-Mailer: git-send-email 2.51.0.167.g6ad8021821.dirty In-Reply-To: <20250925061600.11818-1-aclopte@gmail.com> References: <20250823083010.145866-1-aclopte@gmail.com> <20250925061600.11818-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 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/vncterm.c b/vncterm.c index 9830f21..e014818 100644 --- a/vncterm.c +++ b/vncterm.c @@ -1218,6 +1218,7 @@ static void vncterm_putchar(vncTerm *vt, unicode ch) { vt->tty_state = ESsquare; break; case ']': + case 'P': vt->tty_state = ESnonstd; break; case '%': @@ -1256,7 +1257,7 @@ static void vncterm_putchar(vncTerm *vt, unicode ch) { break; } break; - case ESnonstd: /* Operating System Controls */ + case ESnonstd: /* Operating System Command or Device Control String */ vt->tty_state = ESnormal; switch (ch) { @@ -1279,7 +1280,7 @@ static void vncterm_putchar(vncTerm *vt, unicode ch) { case ESosc: if (ch == 0x9c || ch == 7) { #ifdef DEBUG - fprintf(stderr, "OSC sequence\n"); + fprintf(stderr, "OSC/DCS sequence\n"); #endif vt->tty_state = ESnormal; } -- 2.51.0.167.g6ad8021821.dirty --===============0927188991967553860== 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 --===============0927188991967553860==--