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 161911FF183 for ; Wed, 27 Aug 2025 09:35:46 +0200 (CEST) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id A1AB412294; Wed, 27 Aug 2025 09:35:17 +0200 (CEST) To: pve-devel@lists.proxmox.com Date: Sat, 23 Aug 2025 10:17:08 +0200 In-Reply-To: <20250823083010.145866-1-aclopte@gmail.com> References: <20250823083010.145866-1-aclopte@gmail.com> X-Mailman-Approved-At: Wed, 27 Aug 2025 09:35:14 +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 4/4] Also parse DCS commands Content-Type: multipart/mixed; boundary="===============3350296233251793052==" Errors-To: pve-devel-bounces@lists.proxmox.com Sender: "pve-devel" --===============3350296233251793052== 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 6D310D48AB for ; Sat, 23 Aug 2025 10:31:34 +0200 (CEST) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 4FD591CCD3 for ; Sat, 23 Aug 2025 10:31:04 +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 ; Sat, 23 Aug 2025 10:31:03 +0200 (CEST) Received: by mail-ej1-x633.google.com with SMTP id a640c23a62f3a-afcb78d5e74so505346666b.1 for ; Sat, 23 Aug 2025 01:31:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1755937857; x=1756542657; 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=Ws67q00I4rBw4BQJFxD6+KZE0DGImpegZuC4F35kJBo=; b=X7tKDhW4IhuPke1rWiPQyC2Z2fOG8ENdx+FY901E1dY4UiDHmcMhBFie/f8yAgGK6P YowAu9LRwyw6Ya+mSNDpvKbDqgAIGy9lNndqFtHArRidmDb3HlgurlrPIwrdMjRCHhT9 KHgBcYAOWCwh+aYFqlbhFrCZ/xsQlXknOTcm8dAYap4ZRm3KBWdG1UhYgeUhZNjv9NvD HdHbHIIiGYAkoWgRw4ph103YA5Ttnwf/lbZGpnEc+DBZVyIqiVZ6nT27W/9wDAQP9paO v9FN0lVPj/yOdtwGMhTPYPDclV3/rKDsw0CuIAM2hg7WIyV0XyGQjGPRcW52Ofrbswcu 2Xgw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1755937857; x=1756542657; 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=Ws67q00I4rBw4BQJFxD6+KZE0DGImpegZuC4F35kJBo=; b=DHvLhqLUL4o9H1np9//Od+JpmIUji9KjZargOBwzt4CgNG3Wz9mB2QgZGUQfEhkgFY RRMyWTstJaDpzH+r4jUBhffKZN04KeZJDqVDFxlpdKVavh63/h4zR98XGlV0sxm2MuvE HmvysX2mYBIEGsPmiHG8HWXWz/KOCgQoPI2Q1GsTOO9erRl1EfitdA3p62fUwGeXeX0T rgNoLAgX/cHvADEmC1XVT8CgQd89he48sbZO2AR72vlFmZPd1V5BNbVo3YYrsiWpd3LV nUIEHoQAK/7p+TuEdR+1I8LgSEYpV9wjomY511fceLf8RJX5AtEmjUM4qVV394qjg+OQ SWPA== X-Gm-Message-State: AOJu0YwNckEbrk86Z5QOfrV+02k1iG9dTuALnye7TWEiFl4V1SwVmcj7 pfuD5VSf2t8nhHpGMcYKAbYt1ZtwiKzjM4Dt68klFDFGz1tNyS/OD9xQdh+afQ== X-Gm-Gg: ASbGncvhX5KOjBjMVJJn/8M0IjXBjKG4FeFn9rnrQjeWqZAUk2eyLWUqCjBzM3d0f+z JToWeM5fFneq/gVJFa8DlWwUVwSJayE9USt09hld1k6IwqMqoZdv8qIpJnymKIviHX/a3gZeqtW N0e8VYlpYgJufAEVRZ8u8V0j6v4k12KK3thNKcuym93+O8tZ3s9Sfol8Ju1xf2NKwoMo8ahffIN 0dycGiex+kqIWm1h+l+P50pqheSXZL97gGYSZhp6BQ8m6NL6A4A+8z7c8l5/E9AJhNWHLAKZZLv fSmNiSuunsfeoAy4q69slrZlIsHrYMReaIbCEQwTLPVzL7XJfbygWbzKKI4DfKxc3Ya55Z/BIuU La9xjafzdBkvzfA49xw== X-Google-Smtp-Source: AGHT+IHGDp6g93+GYVYAOvhfRIfrLw+w0yaFbNeb1tXuzIu/ZgLB3r4eLirxCGN8Ayz0WaPC2kPdVw== X-Received: by 2002:a17:907:1c8c:b0:afe:114f:11fb with SMTP id a640c23a62f3a-afe29631283mr453298466b.64.1755937854865; Sat, 23 Aug 2025 01:30:54 -0700 (PDT) Received: from localhost.localdomain ([2001:4bc9:1fb6:b776::e07]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-afe48e85be7sm131312666b.13.2025.08.23.01.30.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 23 Aug 2025 01:30:54 -0700 (PDT) From: Johannes Altmanninger To: pve-devel@lists.proxmox.com Cc: Johannes Altmanninger Subject: [PATCH vncterm 4/4] Also parse DCS commands Date: Sat, 23 Aug 2025 10:17:08 +0200 Message-ID: <20250823083010.145866-5-aclopte@gmail.com> X-Mailer: git-send-email 2.50.1.194.g038143def7 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 AWL -0.000 Adjusted score from AWL reputation of From: address 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: Wed, 27 Aug 2025 09:35:14 +0200 This is used by some commands like XTGETTCAP. Signed-off-by: Johannes Altmanninger --- vncterm.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/vncterm.c b/vncterm.c index 0c45a91..3d795d7 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.50.1.194.g038143def7 --===============3350296233251793052== 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 --===============3350296233251793052==--