URL:
  <https://savannah.gnu.org/bugs/?66435>

                 Summary: Sending long terminal title sequence makes screen
ignore part of it and pass it through incorrectly
                   Group: GNU Screen
               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
         Discussion Lock: Any
                 Release: 5.0.0
           Fixed Release: None
         Planned Release: None
           Work Required: None


    _______________________________________________________

Follow-up Comments:


-------------------------------------------------------
Date: Tue 12 Nov 2024 06:42:36 PM UTC By: Anonymous
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.com/systemd/systemd/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.







    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?66435>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/

Attachment: signature.asc
Description: PGP signature

Reply via email to