bugGNU Screen - Bugs: bug #66358, RXVT_OSC feature breaks screen...

 
 

bug #66358: RXVT_OSC feature breaks screen window numbers in xterm window title

Submitter:  Eric Gillespie <epg>
Submitted:  Sat 19 Oct 2024 05:17:33 PM UTC
   
 
Category:  User Interface Severity:  3 - Normal
Priority:  * 5 - Normal Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Open Release:  5.0.0
Fixed Release:  None Planned Release:  None
Work Required:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Sat 19 Oct 2024 05:17:33 PM UTC, original submission:  

(Initially reported to screen-users list but maybe that's no longer the thing:
https://lists.gnu.org/archive/html/screen-users/2024-10/msg00001.html)

I've had the following .screenrc since 2001:

# Make these terminals optimal instead of vt100
termcap xterm|*rxvt*|(dt|k|E)term) OP
# Pass on xterm escape codes (such as titlbar setting)
hardstatus on
hardstatus string "%h (%n)%? users: %u%?"
termcapinfo xterm*|rxvt* hs:ts=\E]2;:fs=^G:ds=\E]2;TITLEDISABLED^G

I don't know where I got it, really.  Could have been usenet,
could have been IRC, could have been laz (who maintained the
package for Debian for a while back then).

It takes the escape sequences I have my shell send to XTerm and
appends the window number to it.

So, window 0 might put 'epg@dogato:~/work (0)` into the title
bar, and window 1 might put up 'root@hassadar:/etc (1)'.

With 5.0, this stops working.  Rather, when I switch windows, the
correct title goes up, but as soon as I his 'enter', the window
title disappears.

I tracked it down to the compile-time RXVT_OSC feature,
introduced in 3.9.8 (way back in 2000!) but OFF BY DEFAULT, and
not even exposed via configure until 3.9.11.  None of NetBSD,
FreeBSD, Debian, or openSUSE that I used over the years turned it
on, so I never encountered it.

Until:

commit 2168239005ee587fdec417c987a632e81f86c80e
Author: Amadeusz Sławiński (amade) <amade@asmblr.net>
Date:   Tue Jan 4 13:31:39 2011

    make most features as always built in from now on

2011?!  That commit doesn't appear in any 4.x branch, but does in 5.0.

So that's why I'm just now seeing a change introduced 24 years ago.

So, my request:

Can we get back an option for this, preferably a .screenrc option
thsi time around?

I need my screen window numbers!

I searched the web a bit and found this old bug, which I sure
sounds like the same issue I'm reporting now:

https://savannah.gnu.org/bugs/?42445

I have a small patch to add a new flag, 'osctitle' to turn off
the new behavior.  Hope that helps!

Eric Gillespie <epg>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by epg (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follows 1 latest change.

    Date Changed by Updated Field Previous Value => Replaced by
    2024-10-19 epg Attached File- Added 0001-Add-osctitle-command-to-disable-OSC-window-titles.patch, #56557

    Back to the top

    Powered by Savane 3.14-573e.
    Corresponding source code