bugGNU Screen - Bugs: bug #66254, Invalid SGR sequences produced...

 
 

bug #66254: Invalid SGR sequences produced when starting screen detached

Submitter:  None
Submitted:  Wed 25 Sep 2024 09:49:51 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

Add a New Comment Rich Markup
   

Wed 25 Sep 2024 09:49:51 PM UTC, original submission:  

When running a terminal emulator with the termcap kmous=\E[< and starting screen detached, it produces invalid SGR sequences. After enabling SGR reporting I see that the terminal program receives something that resembles SGR sequences, but they start with \e[M instead of \e[<. If I run the same outside of screen, the sequences start with \e[<.

Steps to reproduce:
1. Open a terminal emulator with kmous=\E[< e.g. a recent version of xterm.
2. Start screen with: screen -d -m sh
3. Attach with: screen -r
4. Run: printf "\e[?1006h\e[?1000h" && cat -v
5. Click with the mouse
6. Observe that the sequences start with ^[[M

If you instead start screen initially attached with screen sh, and run the same you see that the sequences instead start with ^[[< as they should. The same occurs outside of screen.

Anonymous

 

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

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

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.

 

No changes have been made to this item

Back to the top

Powered by Savane 3.14-430a.
Corresponding source code