Bug#273194: xterm: characters from paste buffer lost at roughly 4kB intervals [kernel pty bug?]
- To: 273194@bugs.debian.org
- Subject: Bug#273194: xterm: characters from paste buffer lost at roughly 4kB intervals [kernel pty bug?]
- From: Vincent Lefevre <vincent@vinc17.net>
- Date: Mon, 23 Jan 2023 03:11:59 +0100
- Message-id: <[🔎] 20230123021159.GA242341@zira.vinc17.org>
- Reply-to: Vincent Lefevre <vincent@vinc17.net>, 273194@bugs.debian.org
- In-reply-to: <20061014195610.GA21528@saltmine.radix.net>
- References: <20040924133650.8EEAB32971@pogo.internal.demiurgestudios.com> <75Whg-2ln-23@gated-at.bofh.it> <20061014195610.GA21528@saltmine.radix.net> <20040924133650.8EEAB32971@pogo.internal.demiurgestudios.com>
On 2006-10-14 15:56:10 -0400, Thomas Dickey wrote:
> On Sat, Oct 14, 2006 at 08:20:14PM +0200, Andrew Moise wrote:
> > I still see this misbehavior with xterm 210-3.1 and
> > linux-image-2.6.17-2-686 2.6.17-9.
>
> I can see it (now) with a 2.6.15 kernel (814 lines copied).
> I also note that Branden got no followup from the kernel people.
This also occurs with
Linux zira 6.1.0-2-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.7-1 (2023-01-18) x86_64 GNU/Linux
and xterm, mlterm and GNOME Terminal at least. This would confirm
a kernel pty bug (unless this is a documented pty limitation, in
which case the applications would have to take it into account...
but they could try to implement a workaround in any case).
For me, with the above kernel, the limit is 4095 bytes.
An annoying consequence is that Ctrl-C no longer works, which can
yield buggy commands executed by the shell after an accidental
paste while a foreground X command is running (presumably because
bracketed paste is not in effect, so that each newline character
validates each line as a command). See
https://lists.debian.org/debian-user/2023/01/msg00520.html
--
Vincent Lefèvre <vincent@vinc17.net> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)
Reply to: