Package: ncurses-base
Version: 5.9-1
Severity: wishlist
Hello,
Graphical terminal emulator have a useful specific feature that other do not
have: the window title. But here again, they use different control sequence to
access to it. I think this makes this feature a good candidate for terminfo,
but there exist no capability related to “window title”.
Fortunately, the graphical terminal emulator often miss another feature, the
status line, which has a function very close to the window title. In fact the
window title is perceived as replacing, or implementing a status line for
graphical terminal emulators. Thus, several terminal emulators declared the hs,
tsl and fls capabilities to control the status line: this is the case of
terminator, rxvt-unicode and st, for instance.
So, would it be possible to add hs, tsl, fsl and wsl to the xterm definition?
I think that would be:
hs,
tsl=\E]0;,
fsl=^G,
wsl=-1,
This is useful to write terminal-independant shell configuration that set the
window title. A common use is to add the working directory to the window title,
for instance.
-- System Information:
Debian Release: wheezy/sid
APT prefers testing
APT policy: (990, 'testing'), (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.39-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
-- no debconf information
Acknowledgement sent
to Thomas Dickey <[email protected]>:
Extra info received and forwarded to list. Copy sent to Craig Small <[email protected]>.
(Thu, 21 Jul 2011 09:57:21 GMT) (full text, mbox, link).
On Thu, 21 Jul 2011, Tanguy Ortolo wrote:
> Package: ncurses-base
> Version: 5.9-1
> Severity: wishlist
>
> Hello,
>
> Graphical terminal emulator have a useful specific feature that other do not
> have: the window title. But here again, they use different control sequence to
> access to it. I think this makes this feature a good candidate for terminfo,
> but there exist no capability related to “window title”.
>
> Fortunately, the graphical terminal emulator often miss another feature, the
> status line, which has a function very close to the window title. In fact the
The status capabilities are documented (and standardized) to use a
parameter (the starting column at which to begin writing).
xterm's title control sequence doesn't honor that parameter.
Therefore any use of that would have to be via an extension entry.
--
Thomas E. Dickey
http://invisible-island.netftp://invisible-island.net
Acknowledgement sent
to Tanguy Ortolo <[email protected]>:
Extra info received and forwarded to list. Copy sent to Craig Small <[email protected]>.
(Thu, 21 Jul 2011 10:03:17 GMT) (full text, mbox, link).
Thomas Dickey, 2011-07-21 05:44 UTC-0400:
> The status capabilities are documented (and standardized) to use a
> parameter (the starting column at which to begin writing).
Are they? The terminfo manpage only indicates that tsl is to go to the
status line, first column. Then the status line may allow to use control
sequence; this is indicated by the capability eslok.
Then there is also the wsl capability that indicates the status line
width if it is different from the terminal width: for rxvt-unicode it is
set to -1, which I guess is to indicate that it has a free width.
--
Tanguy Ortolo
Acknowledgement sent
to Thomas Dickey <[email protected]>:
Extra info received and forwarded to list. Copy sent to Craig Small <[email protected]>.
(Thu, 21 Jul 2011 10:45:19 GMT) (full text, mbox, link).
Subject: Re: Bug#634956: ncurses-base: xterm should have hs, tsl and fsl (in
other word: use status line for window title)
Date: Thu, 21 Jul 2011 06:39:26 -0400 (EDT)
On Thu, 21 Jul 2011, Tanguy Ortolo wrote:
> Thomas Dickey, 2011-07-21 05:44 UTC-0400:
>> The status capabilities are documented (and standardized) to use a
>> parameter (the starting column at which to begin writing).
>
> Are they? The terminfo manpage only indicates that tsl is to go to the
> status line, first column. Then the status line may allow to use control
> sequence; this is indicated by the capability eslok.
The "#1" means that its a parameter, and (tersely) that it's the column.
Not ambiguous.
> Then there is also the wsl capability that indicates the status line
> width if it is different from the terminal width: for rxvt-unicode it is
> set to -1, which I guess is to indicate that it has a free width.
If rxvt-unicode had documentation, we might discuss it...
--
Thomas E. Dickey
http://invisible-island.netftp://invisible-island.net
Acknowledgement sent
to Tanguy Ortolo <[email protected]>:
Extra info received and forwarded to list. Copy sent to Craig Small <[email protected]>.
(Thu, 21 Jul 2011 11:06:18 GMT) (full text, mbox, link).
Thomas Dickey, 2011-07-21 06:39 UTC-0400:
> The "#1" means that its a parameter, and (tersely) that it's the column.
> Not ambiguous.
Oh, right, I missed it, sorry. Okay, that was my suggestion but are now
this topic better than I do, so I shall let you decide what to do with
this report now.
--
Tanguy Ortolo
Acknowledgement sent
to Tanguy Ortolo <[email protected]>:
Extra info received and forwarded to list. Copy sent to Craig Small <[email protected]>.
(Thu, 21 Jul 2011 12:06:31 GMT) (full text, mbox, link).
Tanguy Ortolo, 2011-07-21 13:04 UTC+0200:
> Oh, right, I missed it, sorry. Okay, that was my suggestion but are now
> this topic better than I do, so I shall let you decide what to do with
> this report now.
Sorry, one more reflexion about that. There may exist other solutions,
but if the decision is between adding or not hs, tsl and fsl to the
xterm definition, I think this is the question that should be
considered: will the situation be better or worse than it is currently?
For what I see, the current situation is:
* many shell configurations and programs use hardcoded escape sequences
for xterm only, and do not use other terminal's window title features
because they do not know about it;
* several other graphical terminal emulators expose tsl and fsl for
window title, simply ignoring the column argument;
* as far as I know, there exist no program that use the status line
column selection, but I may be wrong: did you get many bug reports
about rxvt-unicode's tsl that does not honor the position argument?
Introducing tsl and fsl would:
* allow to write portable shell configurations and programs;
* break all the programs that rely on the status line column
selection.
If the number of programs that rely on the status line column selection
is actually null, then I think this would only be a benefit.
--
,--.
: /` ) Tanguy Ortolo <xmpp:[email protected]> <irc://irc.oftc.net/Elessar>
| `-' Debian Maintainer
\_
Acknowledgement sent
to Thomas Dickey <[email protected]>:
Extra info received and forwarded to list. Copy sent to Craig Small <[email protected]>.
(Thu, 21 Jul 2011 20:45:05 GMT) (full text, mbox, link).
Subject: Re: Bug#634956: ncurses-base: xterm should have hs, tsl and fsl (in
other word: use status line for window title)
Date: Thu, 21 Jul 2011 16:41:36 -0400 (EDT)
On Thu, 21 Jul 2011, Tanguy Ortolo wrote:
> Tanguy Ortolo, 2011-07-21 13:04 UTC+0200:
>> Oh, right, I missed it, sorry. Okay, that was my suggestion but are now
>> this topic better than I do, so I shall let you decide what to do with
>> this report now.
>
> Sorry, one more reflexion about that. There may exist other solutions,
> but if the decision is between adding or not hs, tsl and fsl to the
> xterm definition, I think this is the question that should be
> considered: will the situation be better or worse than it is currently?
>
> For what I see, the current situation is:
> * many shell configurations and programs use hardcoded escape sequences
> for xterm only, and do not use other terminal's window title features
> because they do not know about it;
> * several other graphical terminal emulators expose tsl and fsl for
> window title, simply ignoring the column argument;
more to the point (a quick glance at the terminal database shows me that a
majority use the parameter, and that the "several" which you may be
considering is still only a small fraction of the total). For discussion
purposes, there's a "xterm+sl block, which has only been mentioned 2-3
times over the past 10 years.
> * as far as I know, there exist no program that use the status line
> column selection, but I may be wrong: did you get many bug reports
> about rxvt-unicode's tsl that does not honor the position argument?
bug reports about urxvt would be forwarded to its developer...
(an extension name would not conflict with existing usage)
--
Thomas E. Dickey
http://invisible-island.netftp://invisible-island.net
Debbugs is free software and licensed under the terms of the GNU General
Public License version 2. The current version can be obtained
from https://bugs.debian.org/debbugs-source/.