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

From: Hiltjo Posthuma <hiltjo_AT_codemadness.org>
Date: Tue, 6 Sep 2022 20:22:32 +0200

On Wed, Sep 07, 2022 at 12:12:16AM +0900, Koichi Murase wrote:
> 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
> >
>

Hi,

I looked at the _references_. But you should first and foremost describe the issue
clearly. I think I understand it, but was not convinced.

Can you answer my questions directly?

The referenced comment in the vt code has assumptions which are likely false.

They have not even tested xterm it seems.

To me it looks xterm is doing the right thing.

-- 
Kind regards,
Hiltjo
Received on Tue Sep 06 2022 - 20:22:32 CEST

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