Re: Ctrl-C ignored after pasting a long text in an X terminal emulator
On 2023-01-22 05:17 +0100, Vincent Lefevre wrote:
> On 2023-01-21 21:19:06 -0600, David Wright wrote:
>> On Sun 22 Jan 2023 at 03:50:17 (+0100), Vincent Lefevre wrote:
>> > 3. Type Ctrl-C (one or several times) in the terminal.
>> > But nothing happens.
>>
>> I presume that's because the input buffer is already full, so
>> you'd need what I think they called an out-of-band signal,
>> like pressing Break used to do on an old teletype terminal.
>
> Why doesn't the terminal have a function to flush and discard
> the input buffer or have some reserved space for the intr and
> quit characters? Or automatically increase the size of the
> input buffer?
This might be a limitation of Linux's pty(7) subsystem. The xterm
manpage mentions the following:
,----
| BUGS
| Large pastes do not work on some systems. This is not a bug in
| xterm; it is a bug in the pseudo terminal driver of those systems.
| Xterm feeds large pastes to the pty only as fast as the pty will
| accept data, but some pty drivers do not return enough information
| to know if the write has succeeded.
`----
See also https://bugs.debian.org/273194 in xterm. Disclaimer: I do not
have any expertise in that area.
Cheers,
Sven
Reply to: