Project

General

Profile

Actions

Bug #20454

closed

IRB echoes excessive input in dumb terminal

Added by zonuexe (Kenta USAMI) 10 days ago. Updated 4 days ago.

Status:
Third Party's Issue
Assignee:
-
Target version:
-
ruby -v:
ruby 3.3.1 (2024-04-23 revision c56cd86388) [arm64-darwin23]
[ruby-core:117706]

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

Updated by alanwu (Alan Wu) 4 days ago

  • Status changed from Open to Third Party's Issue

IRB has its own release cycles and bug tracker at https://github.com/ruby/irb/issues
Sorry for the redirection, but please file this issue there.

Actions

Also available in: Atom PDF

Like0
Like0