Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

REPL integrated readline #10667

Closed
toivoh opened this issue Mar 29, 2015 · 6 comments
Closed

REPL integrated readline #10667

toivoh opened this issue Mar 29, 2015 · 6 comments
Assignees
Labels
docs This change adds or pertains to documentation REPL Julia's REPL (Read Eval Print Loop)

Comments

@toivoh
Copy link
Contributor

toivoh commented Mar 29, 2015

I feel that this has been discussed before, but I couldn't find an issue. Anyway, now that #6270 has had the chance to simmer for quite a bit, it would be nice if also user code could make use of the readline functionality provided by the new REPL.

I'm not sure if this should be special cased on calling readline(STDIN) (or just readline()), or if there should be a new function (with more options?). Also, not sure how this should work with eg IJulia.

This would e.g. be really useful to improve the debugging experience with Debug.jl. I'm sure there's others who would benefit as well.

@ihnorton ihnorton added the REPL Julia's REPL (Read Eval Print Loop) label Mar 30, 2015
@KristofferC
Copy link
Member

readline() now seems to wait for STDIN. Ok to close?

@tkelman
Copy link
Contributor

tkelman commented Jan 26, 2017

Isn't this referring to tab completion etc in user input?

@KristofferC
Copy link
Member

I don't know.

@vtjnash vtjnash added the docs This change adds or pertains to documentation label Mar 6, 2017
@rfourquet
Copy link
Member

I don't understand the issue here, could someone clarify what is requested here?

@timholy
Copy link
Member

timholy commented Oct 8, 2017

julia> readline()
Once upp^A
"Once upp\x01"

That ^A was me trying to go back to the beginning of the line using readline commands. The issue is requesting documentation about how one might turn that on.

@KristofferC
Copy link
Member

The "correct" way to do this seems to me to be to implement a new REPL mode (like Debugger and Pkg does) and not call readline explicitly. So I don't think there is much to do here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs This change adds or pertains to documentation REPL Julia's REPL (Read Eval Print Loop)
Projects
None yet
Development

No branches or pull requests

8 participants