* bug#64554: 27.1; comint-mode cuts input after 4095 characters
@ 2023-07-10 9:37 Jens Thiele
2023-07-10 13:24 ` Eli Zaretskii
0 siblings, 1 reply; 2+ messages in thread
From: Jens Thiele @ 2023-07-10 9:37 UTC (permalink / raw)
To: 64554
Hi!
I see an annoying bug with comint-mode where lines are cut off after
4095 characters.
How to reproduce:
start comint-mode with cat:
M-: (switch-to-buffer (make-comint "cat" "cat"))
insert 10000 u's
C-u 10000 u RET
and get only 4095 u's back in return (where of course 10000 should be returned)
greetings
Jens
^ permalink raw reply [flat|nested] 2+ messages in thread
* bug#64554: 27.1; comint-mode cuts input after 4095 characters
2023-07-10 9:37 bug#64554: 27.1; comint-mode cuts input after 4095 characters Jens Thiele
@ 2023-07-10 13:24 ` Eli Zaretskii
0 siblings, 0 replies; 2+ messages in thread
From: Eli Zaretskii @ 2023-07-10 13:24 UTC (permalink / raw)
To: Jens Thiele; +Cc: 64554
> From: Jens Thiele <karme@karme.de>
> Date: Mon, 10 Jul 2023 11:37:38 +0200
>
> I see an annoying bug with comint-mode where lines are cut off after
> 4095 characters.
>
> How to reproduce:
> start comint-mode with cat:
> M-: (switch-to-buffer (make-comint "cat" "cat"))
> insert 10000 u's
> C-u 10000 u RET
> and get only 4095 u's back in return (where of course 10000 should be returned)
Set process-connection-type to nil if you want to send more than 4KB
to a process. AFAIR, this is a fundamental limitation of PTYs, which
are used by default for communicating with async subprocesses.
Setting process-connection-type to nil uses pipes instead.
See
https://unix.stackexchange.com/questions/643777/is-there-any-limit-on-line-length-when-pasting-to-a-terminal-in-linux
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-07-10 13:24 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-07-10 9:37 bug#64554: 27.1; comint-mode cuts input after 4095 characters Jens Thiele
2023-07-10 13:24 ` Eli Zaretskii
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).