Re: [hackers] [st][patch] Handle DECRQM (Request Mode) escape sequences

From: François-Xavier Carton <fx.carton91_AT_gmail.com>
Date: Mon, 30 Nov 2020 00:56:13 +0100

On Sun, Nov 29, 2020 at 05:37:30PM +0100, Hiltjo Posthuma wrote:
>
> Hi Francois,
>
> First: thanks for the patch.
>
> Do you have maybe a practical use-case example why you'd like to request
> supporting this?
>
> In all st years it has not been requested before. I'd like to prevent
> obscure/non-tested features. Although maybe it's not so obscure and useful, in
> that case please say so :)
>
> --
> Kind regards,
> Hiltjo

Hi Hiltjo,

Well, I guess that if it's not been requested before, then it's not a
highly used feature. And I do understand your concern about that.

I implemented this because I wanted to use that feature in one of my
programs (and the only terminal emulator I have installed is st). More
precisely, the program switches to alternate screen at the beginning,
and restores normal screen at the end. However, this can break things
when run under another program that does the same thing (eg. vim, less,
...). So in my program, I wanted to test whether alternate screen is
enabled at the beginning, and if so, omit switching back to normal
screen at the end.

The reason I posted the patch here is 1) to get feedback; and 2) if this
is deemed useful to have, I'd rather have it mainlined than maintain it
separately, as the patch makes changes in core functions.

That being said, I understand why you would like not to support this, as
the feature is rarely used.

Best,
François-Xavier
Received on Mon Nov 30 2020 - 00:56:13 CET

This archive was generated by hypermail 2.3.0 : Mon Nov 30 2020 - 01:00:34 CET