Subject: Re: bug#36879: 26.2; OSC 52 paste in term/xterm.el not working

From: Mattias Engdegård <[email-masked]>
Date: Sat, 3 Aug 2019 14:26:29 +0200

3 aug. 2019 kl. 14.08 skrev Eli Zaretskii <[email-masked]>:
> 
> Where is the code that discards input if it arrives quickly and
> includes C-g?

In the kernel. When it receives the INTR char, it flushes any unread chars, unless NOFLSH is set.
You can try it out in your shell:

$ sleep 10
abc^C
$          ("abc" was discarded)
$ stty noflsh
$ sleep 10
xyz^C
$ xyz      ("xyz" was read by the shell)

However, NOFLSH doesn't help us in Emacs.