bugGNU Screen - Bugs: bug #57748, Screen buffers ESC keypresses...

 
 

bug #57748: Screen buffers ESC keypresses indefinitely since sgr support patch

Submitted by:  None
Submitted on:  Wed 05 Feb 2020 11:21:49 PM UTC  
Votes:  60  
 
Category:  None Severity:  3 - Normal
Priority:  5 - Normal Status:  Confirmed
Privacy:  Public Assigned to:  None
Open/Closed:  Open Release:  4.7.0
Fixed Release:  None Planned Release:  None
Work Required:  None

Add a New Comment (Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Sat 09 Jan 2021 11:55:12 PM UTC, comment #4: 

Ah, so this is what was causing that. I have a workaround if you don't use the mouse in any terminal apps:

run `infocmp -1 > termcap.txt`, remove the line that starts `kmous=`, then run `tic termcap.txt`.

I do use the mouse sometimes, so a real fix would be nice.

Tavis Ormandy <realtaviso>
Sat 09 Jan 2021 10:52:38 PM UTC, comment #3: 

Hi - I've just spotted this too, also because of Vim. I've bisected it to `fa3f485 support sgr mouse mose`.

> I'll draft a patch this weekend.

Did you ever get around to that? If so I'd be keen to try and test it out (and if not, I may have a go myself).

Cheers,
Chris

Chris Diamand <chrisd>
Sat 18 Jul 2020 01:18:09 PM UTC, comment #2: 

Yeah, I think the solution is to implement a timeout that triggers the "no escape sequence detected" state transition. I'll see if I can dig up a sensible timeout that other terminal emulators use.

If I get around to it, I'll draft a patch this weekend. This behavior finally became infuriating enough to me (vim user :'( here) to try fixing it.

Arjun Govindjee <arjunyg>
Tue 25 Feb 2020 06:22:07 PM UTC, comment #1: 

That seems right.

It is caused by trying to detect if there is wrong escape sequence delivered to screen.
I wonder if in this case it is not overstepping what we should do.

Amadeusz Sławiński <amade>
Project Administrator
Wed 05 Feb 2020 11:21:49 PM UTC, original submission:  

Building 4.7.0 and 4.8.0 screen from source, I noticed that I must press ESC twice in vim within screen to exit insert mode. Running showkey -a I can see that the ESC keypress is not delivered to the pty within screen until a subsequent key is pressed, with no set timeout.

Reverting 40819ffe2b7ff2cbcb93d7b73d553179e57a27e1 alleviates the problem, although there is still a delay controlable by maptimeout.

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

 

Carbon-Copy List
  • -email is unavailable- added by realtaviso (Posted a comment)
  • -email is unavailable- added by chrisd (Posted a comment)
  • -email is unavailable- added by arjunyg (Posted a comment)
  • -email is unavailable- added by amade (Posted a comment)
  • -email is unavailable- added by arjunyg (Voted in favor of this item)
  •  

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 60 encouragements so far.

    Only logged-in users can vote.

     

     

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2020-02-25 amade StatusNone => Confirmed
    2020-02-05 arjunyg Carbon-Copy- => Added arjunyg

    Back to the top


    Powered by Savane 3.6