Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Change the editor module using an environment variable? #113

Closed
dgutov opened this issue Jul 14, 2020 · 1 comment · Fixed by #907
Closed

Change the editor module using an environment variable? #113

dgutov opened this issue Jul 14, 2020 · 1 comment · Fixed by #907

Comments

@dgutov
Copy link
Contributor

dgutov commented Jul 14, 2020

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 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.

@dgutov dgutov changed the title Change the prompt via a environment variable? Change the editor module using an environment variable? Jul 14, 2020
@dgutov
Copy link
Contributor Author

dgutov commented Jul 30, 2020

Would you review a PR?

dgutov added a commit to dgutov/irb that referenced this issue Mar 22, 2024
This works around Reline's misbehavior on low-capability terminals,
such as when IRB is launched inside Emacs (ruby/reline#616).

It should also resolve ruby#68 and resolve ruby#113 which were filed out of
similar need.
@tompng tompng closed this as completed in 241e061 May 1, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Development

Successfully merging a pull request may close this issue.

1 participant