From 5b0af8ed59c86cfe02bee65f9078ccf9920eb0be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Fri, 9 Oct 2020 18:53:00 +0200 Subject: [PATCH] csi: only respond to Primary DA when Ps == 0 --- CHANGELOG.md | 1 + csi.c | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1df82ec3..c4c313a7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -68,6 +68,7 @@ (https://codeberg.org/dnkl/foot/issues/151). * Crash after either resizing a window or changing the font size if there were sixels present in the scrollback while doing so. +* _Send Device Attributes_ to only send a response if `Ps == 0`. ### Security diff --git a/csi.c b/csi.c index 1b5d070b..f2ff38be 100644 --- a/csi.c +++ b/csi.c @@ -660,6 +660,11 @@ csi_dispatch(struct terminal *term, uint8_t final) break; case 'c': { + if (vt_param_get(term, 0, 0) != 0) { + UNHANDLED(); + break; + } + /* Send Device Attributes (Primary DA) */ /*