Linux Serial subsystem development
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Nicolas Pitre" <nico@fluxnic.net>
Cc: linux-serial@vger.kernel.org
Subject: Re: [PATCH 3/3] vt: add DECRQM support to report mode states
Date: Mon, 19 Oct 2026 21:22:43 +0000	[thread overview]
Message-ID: <sashiko-outbox-178245@kernel.org> (raw)
In-Reply-To: <ec7608275b930b9c31c1e08881b9984bc982a6a8.1792443833.git.npitre@baylibre.com>

> From: Nicolas Pitre <npitre@baylibre.com>
> 
> Applications currently have no way to find out whether the VT supports
> a given mode, nor what its current state is. DECRQM, "CSI Ps $ p" for
> ANSI modes and "CSI ? Ps $ p" for DEC private modes, is the standard
> query for this. But the '$' intermediate makes the parser ignore the
> whole sequence, leaving applications waiting for a reply that never
> comes.
> 
> This matters especially for mode 2027, whose specification relies on
> DECRQM for applications to detect support before enabling it.
> 
> Add an ESdollar parser state for "CSI parameters $", and answer a final
> 'p' with DECRPM, "CSI [?] Ps ; Pm $ y", where Pm is 1 (set), 2 (reset),
> 0 (not recognized) or 4 (permanently reset). All modes handled by
> csi_DEC_hl() and csi_hl() are reported, with 132-column mode reported
> as permanently reset since it isn't implemented. Other sequences using
> the '$' intermediate are still ignored.
> 
> Assisted-by: LLM
> Signed-off-by: Nicolas Pitre <npitre@baylibre.com>

Sashiko has reviewed this patch and found no issues.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/cover.1792443833.git.npitre@baylibre.com?part=3


      reply	other threads:[~2026-10-19 21:22 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-19 21:16 [PATCH 0/3] vt: make VS16 emoji widening controllable Nicolas Pitre
2026-10-19 21:16 ` [PATCH 1/3] vt: don't make VS16 widening depend on earlier screen contents Nicolas Pitre
2026-10-19 21:23   ` sashiko-bot
2026-10-19 21:16 ` [PATCH 2/3] vt: add DEC private mode 2027 to control VS16 widening Nicolas Pitre
2026-10-19 21:19   ` sashiko-bot
2026-10-19 21:16 ` [PATCH 3/3] vt: add DECRQM support to report mode states Nicolas Pitre
2026-10-19 21:22   ` sashiko-bot [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=sashiko-outbox-178245@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=linux-serial@vger.kernel.org \
    --cc=nico@fluxnic.net \
    --cc=sashiko-reviews@lists.linux.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox