Actions
Bug #20454
closedIRB echoes excessive input in dumb terminal
Status:
Third Party's Issue
Assignee:
-
Target version:
-
ruby -v:
ruby 3.3.1 (2024-04-23 revision c56cd86388) [arm64-darwin23]
Description
When IRB is started on a terminal with the environment variable TERM=dumb, excessive output is generated as shown below.
A simple terminal such as Emacs shell-mode or comint-mode is assumed, but it should be possible to reproduce the following with a rich terminal such as iTerm.
Type 1[RET], 12[RET], 123[RET] on your keyboard in this order.
% TERM=dumb irb
irb(main):001> 1
irb(main):001> 1=> 1
irb(main):002> 12
irb(main):002> 1irb(main):002> 12=> 12
irb(main):003> 123
irb(main):003> 1irb(main):003> 12irb(main):003> 123=> 123
As arton-san says, you can avoid the problem by not using ReadlineInputMethod.
https://twitter.com/arton/status/1783008921000804630
Actions
Like0
Like0