Debian Bug report logs - #634956
ncurses-base: xterm should have hs, tsl and fsl (in other word: use status line for window title)

version graph

Package: ncurses-base; Maintainer for ncurses-base is Ncurses Maintainers <[email protected]>; Source for ncurses-base is src:ncurses (PTS, buildd, popcon).

Reported by: Tanguy Ortolo <[email protected]>

Date: Thu, 21 Jul 2011 09:30:02 UTC

Severity: wishlist

Found in version ncurses/5.9-1

Reply or subscribe to this bug.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to [email protected], Craig Small <[email protected]>:
Bug#634956; Package ncurses-base. (Thu, 21 Jul 2011 09:30:05 GMT) (full text, mbox, link).


Acknowledgement sent to Tanguy Ortolo <[email protected]>:
New Bug report received and forwarded. Copy sent to Craig Small <[email protected]>. (Thu, 21 Jul 2011 09:30:08 GMT) (full text, mbox, link).


Message #5 received at [email protected] (full text, mbox, reply):

From: Tanguy Ortolo <[email protected]>
To: Debian Bug Tracking System <[email protected]>
Subject: ncurses-base: xterm should have hs, tsl and fsl (in other word: use status line for window title)
Date: Thu, 21 Jul 2011 11:26:58 +0200
[Message part 1 (text/plain, inline)]
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
[signature.asc (application/pgp-signature, inline)]

Information forwarded to [email protected], Craig Small <[email protected]>:
Bug#634956; Package ncurses-base. (Thu, 21 Jul 2011 09:57:18 GMT) (full text, mbox, link).


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).


Message #10 received at [email protected] (full text, mbox, reply):

From: Thomas Dickey <[email protected]>
To: Tanguy Ortolo <[email protected]>, [email protected]
Cc: Craig Small <[email protected]>
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 05:44:27 -0400 (EDT)
[Message part 1 (text/plain, inline)]
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.net
ftp://invisible-island.net

Information forwarded to [email protected], Craig Small <[email protected]>:
Bug#634956; Package ncurses-base. (Thu, 21 Jul 2011 10:03:15 GMT) (full text, mbox, link).


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).


Message #15 received at [email protected] (full text, mbox, reply):

From: Tanguy Ortolo <[email protected]>
To: [email protected]
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 12:00:59 +0200
[Message part 1 (text/plain, inline)]
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
[signature.asc (application/pgp-signature, inline)]

Information forwarded to [email protected], Craig Small <[email protected]>:
Bug#634956; Package ncurses-base. (Thu, 21 Jul 2011 10:45:15 GMT) (full text, mbox, link).


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).


Message #20 received at [email protected] (full text, mbox, reply):

From: Thomas Dickey <[email protected]>
To: Tanguy Ortolo <[email protected]>, [email protected]
Cc: Craig Small <[email protected]>
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.net
ftp://invisible-island.net




Information forwarded to [email protected], Craig Small <[email protected]>:
Bug#634956; Package ncurses-base. (Thu, 21 Jul 2011 11:06:16 GMT) (full text, mbox, link).


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).


Message #25 received at [email protected] (full text, mbox, reply):

From: Tanguy Ortolo <[email protected]>
To: [email protected]
Cc: Craig Small <[email protected]>
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 13:04:45 +0200
[Message part 1 (text/plain, inline)]
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
[signature.asc (application/pgp-signature, inline)]

Information forwarded to [email protected], Craig Small <[email protected]>:
Bug#634956; Package ncurses-base. (Thu, 21 Jul 2011 12:06:06 GMT) (full text, mbox, link).


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).


Message #30 received at [email protected] (full text, mbox, reply):

From: Tanguy Ortolo <[email protected]>
To: [email protected]
Cc: Craig Small <[email protected]>
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 14:02:02 +0200
[Message part 1 (text/plain, inline)]
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
 \_
[signature.asc (application/pgp-signature, inline)]

Information forwarded to [email protected], Craig Small <[email protected]>:
Bug#634956; Package ncurses-base. (Thu, 21 Jul 2011 20:45:05 GMT) (full text, mbox, link).


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).


Message #35 received at [email protected] (full text, mbox, reply):

From: Thomas Dickey <[email protected]>
To: Tanguy Ortolo <[email protected]>, [email protected]
Cc: Craig Small <[email protected]>, [email protected]
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.net
ftp://invisible-island.net




Send a report that this bug log contains spam.


Debian bug tracking system administrator <[email protected]>. Last modified: Thu May 15 13:22:11 2025; Machine Name: buxtehude

Debian Bug tracking system

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/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.