Re: [hackers] [st][PATCH] reset the cursor shape to the default with DECSCUSR param 0

From: Koichi Murase <myoga.murase_AT_gmail.com>
Date: Wed, 7 Sep 2022 00:12:16 +0900

2022年9月6日(火) 22:30 Steve Ward <planet36_AT_gmail.com>:
> FWIW, xterm treats 0 the same as 1.
> https://invisible-island.net/xterm/ctlseqs/ctlseqs.html#h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Ps-SP-q.1D81

2022年9月6日(火) 22:35 Hiltjo Posthuma <hiltjo_AT_codemadness.org>:
> Hi,
>
> Are you sure it is correct?
>
> The page https://invisible-island.net/xterm/ctlseqs/ctlseqs.html describes:

Thanks, I wouldn't include in the commit message all the related
discussions made in the references, so I would appreciate it if you
could also see the discussions in Refs. [1] and [2]. This is just
because xterm doesn't allow configuring the default cursor shape, so
the default cursor shape is always the blinking block. This is
consistent with the idea that param 0 causes the cursor shape to be
the default. The same applies to the VT terminals, the first source of
DECSCUSR [3]. However, st allows configuring the default in config.h,
so the "default" 0 and "blinking block" 1 aren't necessarily the same
anymore. This is already mentioned and discussed in [1] and [2].
Actually, I'm not sure if the original VT did behave as described in
[1], but at least it is practical, and other terminals that allow
configuring the default follow.

[3] https://vt100.net/docs/vt510-rm/DECSCUSR.html

--
Koichi
> --
> Kind regards,
> Hiltjo
>
Received on Tue Sep 06 2022 - 17:12:16 CEST

This archive was generated by hypermail 2.3.0 : Tue Sep 06 2022 - 17:24:37 CEST