You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The latest version of IRB is broken when used through Emacs comint (the inf-ruby package).
The standalone irb works okay-ish if passed --nomultiline, (EDIT:) and for Rails one can do rails console -- --nomultiline (with recent enough rails). Any other program that similarly embeds Irb is still affected, and in all cases, when a script has to make a choice whether to pass --nomultiline, it creates a performance penalty on top of it.
If IRB read some environment variable and disabled multiline editing (singleline too maybe, it doesn't seem any effect here), that would be great.
Terminal Emulator
Emacs comint.
Setting Files
Are you using ~/.irbrc and ~/.inputrc?
No. Changing IRB.conf[:USE_MULTILINE] through .irbrc works, but I can hardly ask every user to do that.
The text was updated successfully, but these errors were encountered:
dgutov
changed the title
Change the prompt via a environment variable?
Change the editor module using an environment variable?
Jul 14, 2020
This works around Reline's misbehavior on low-capability terminals,
such as when IRB is launched inside Emacs (ruby/reline#616).
It should also resolveruby#68 and resolveruby#113 which were filed out of
similar need.
Description
The latest version of IRB is broken when used through Emacs comint (the
inf-ruby
package).The standalone
irb
works okay-ish if passed--nomultiline
, (EDIT:) and for Rails one can dorails console -- --nomultiline
(with recent enough rails). Any other program that similarly embeds Irb is still affected, and in all cases, when a script has to make a choice whether to pass--nomultiline
, it creates a performance penalty on top of it.If IRB read some environment variable and disabled multiline editing (singleline too maybe, it doesn't seem any effect here), that would be great.
Terminal Emulator
Emacs comint.
Setting Files
Are you using
~/.irbrc
and~/.inputrc
?No. Changing
IRB.conf[:USE_MULTILINE]
through.irbrc
works, but I can hardly ask every user to do that.The text was updated successfully, but these errors were encountered: