[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Ctrl-C ignored after pasting a long text in an X terminal emulator



On Tue 24 Jan 2023 at 17:18:17 (+0100), Vincent Lefevre wrote:
> On 2023-01-22 15:35:08 -0500, Greg Wooledge wrote:
> > It doesn't work, presumably for the same reason that Ctrl-C doesn't work.
> > The xterm's pty's input buffer is full, and it simply ignores all keyboard
> > input from that point forward.
> 
> They are actually not ignored, but delayed by the terminal emulator.
> This is an issue because Ctrl-C (the intr character) is normally
> taken into account immediately (with a SIGINT generation), even if
> earlier characters have not been read yet by the command.
> 
> And this is apparently the same for the other special characters
> as defined by stty.

How did you determine that they're actually received by the terminal
emulator after the buffer is full? IOW where are they being stored?

Cheers,
David.


Reply to: