bugGNU Screen - Bugs: bug #66435, Sending long terminal title...

 
 

bug #66435: Sending long terminal title sequence makes screen ignore part of it and pass it through incorrectly

Submitter:  None
Submitted:  Tue 12 Nov 2024 06:42:36 PM UTC
   
 
Category:  Program Logic 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

Post a Comment

Add a New Comment Rich Markup
   

Discussion

Tue 12 Nov 2024 06:42:36 PM UTC, original submission:  

Hi,

I've bumped into the issue that running e.g. `systemd-run -q --user --pty -- true {1..300}` command in a screen session, dumps some of the resulting long command line to a terminal.
(but only with screen - see https://github.co ... temd/issues/35104 for details)

Simpler way to reproduce this without needing e.g. systemd, using a python one-liner script:


python -c 'print("\0\33[22;2t\33]2;\360\237\237\241" + "."*800 + "\7", end="")'


With expected result:
Nothing is echoed back to the terminal, regardless of how many dots are generated in the middle of a string value there.

Actual result:
With 800+ dots in the middle, part of this title-setting sequence seem to be ignored by screen tool, and overflows into terminal as command output.

"python" command above can be used to reproduce the issue, at least with two recent "screen" releases - 4.9.1 and 5.0.0.

I think a fix might be to remove everything until closing \7 and discard it, even when it's too long to be useful in a resulting title buffer.

Thanks.

Anonymous

 

Attached Files

This item currently has no attached files.

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

Attach Files:
   
   
Comment:
   

 

Dependencies

This item does not depend on any other items.

No items depend on this one.

 

Mail Notification Carbon-Copy List

 

Votes

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.

 

History

No changes have been made to this item

Back to the top

Powered by Savane 3.16-11ef.
Corresponding source code