I've managed to avoid this by setting my shell to a script which pipes bash through GNU fold, so long lines are broken up before Emacs ever sees them (around 1000 characters; slightly earlier if there's whitespace). Rather extreme, but I really like shell-mode (not really a fan of eshell)
EDIT: Nevermind, search to the rescue
This might be the discussion: https://lists.gnu.org/archive/html/emacs-devel/2022-08/msg00...
These might be the commits: https://git.savannah.gnu.org/cgit/emacs.git/commit/etc/NEWS?...
https://git.savannah.gnu.org/cgit/emacs.git/commit/etc/NEWS?...
- Here's the script itself https://github.com/Warbo/warbo-utilities/blob/master/raw/wra...
- Here's the accompanying expect file https://github.com/Warbo/warbo-utilities/blob/master/raw/wra...
- Here's my patched version of GNU fold, which removes some buffering https://github.com/Warbo/warbo-utilities/blob/master/raw/fol...
- Here's the resulting Nix package (along with some tests) https://github.com/Warbo/warbo-utilities/blob/master/scripts...
My own most recent experience was I did a weekend experiment to switch over to Emacs. I've been trying to find more and more reasons to write various flavors of Lisp. My experiment was going well until I got to this part of Emacs. I realized a lot of my existing workflows depend on at some point bringing text into the editor, composing more text and sending it to the shell. From a programming perspective the different approaches I tried in Emacs (Eshell, dired and at least two more) seemed really cool, but the performance was unacceptable. I was left with blank screens, flashing cursors and scraps of text.
Does someone know is there one of the Emacs approaches to interacting with a shell or performing shell-like activities, that has dramatically better/native-like performance?