bug-ncurses
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Escape sequence to pass $TERM


From: Andrey Butirsky
Subject: Re: Escape sequence to pass $TERM
Date: Thu, 3 Apr 2025 02:49:26 +0300
User-agent: Mozilla Thunderbird Beta

On 4/3/25 01:51, Thomas Dickey wrote:
That means we probably need to incorporate a new Escape Sequence for this
(only if other terminal vendors didn't provide some suitable one).
perhaps someone needs this, but ncurses does not define (or invent)
escape sequences.  It only uses existing escape sequences which have a
well-defined meaning which are implemented consistently in many
different terminals.

Oops, I just realized I wrote to a wrong group, sorry.
My suggestion for a new escape sequence support is actually for XTerm, of course.

If it is supported at least in one terminal emulator, I'm sure systemd will start to use the feature, because it's authors already complained about the lack of possibility to acquire the actual TERM value from existing terminals over serial lines. As a result, they use hardcoded "vt220" value, which is not the best choice for most users (suffice to say they don't get colors by default).
Then it's expected the feature will spawn among major terminal emulator suppliers (even being non-standard), so most users will be covered.

Regarding Ncurses, I think having the feature there is not as much important, because systemd is the first app initiating TERM anyway.

So what do you think about supporting it in XTerm, Thomas?


reply via email to

[Prev in Thread] Current Thread [Next in Thread]