As the title says, when I run the Ruby interactive shell irb
in a shell-mode
buffer on MacOS, my input line is echoed back many times, character by successive character. Example:
irb(main):001> 1+1
irb(main):001> 1irb(main):001* 1+irb(main):001> 1+1irb(main):001> 1+1
=> 2
That's for just three input characters. More characters can produce an extremely long echo line.
This doesn't happen for other interactive shells, like Raku or Python. It also doesn't happen for irb
if I run it in a non-Emacs terminal. It also doesn't happen for irb
in an Emacs term
terminal, which I just thought to check.
All I can find by searching for relevant terms is a phenomenon whereby the entire input line is echoed at once. I recently arranged to set the Emacs variable comint-process-echoes
to t
, but I don't recall exactly why I needed to. In any case, this variable has no effect on the kind of echoing I've described.
Any tips on investigating or addressing this weirdness?