-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Have a sanctioned way to modify the REPL's IOContext #20509
Comments
+1. I suspect we just need to remove the type restrictions from the fields of |
What's the advantage over using a global or using a proper logging tool? |
👍 for IO context configurability in REPL. Configuring the REPL's IOContext is better than using a global because it avoids interfering with any user code; it just affects how things are displayed. I'm not sure what logging has to do with this; IOContext will only affect how things are printed and has nothing to do with logging. I believe what Keno means by "debug info" are object internals. |
This adds an `iocontext::Dict{Symbol,Any}` field to `LineEditREPL`, which can be initialized with `atreplinit`, and updated interactively, e.g. `Base.active_repl.iocontext[:compact] = true`. Fixes #20509.
This adds an `iocontext::Dict{Symbol,Any}` field to `LineEditREPL`, which can be initialized with `atreplinit`, and updated interactively, e.g. `Base.active_repl.iocontext[:compact] = true`. Fixes #20509.
This adds an `iocontext::Dict{Symbol,Any}` field to `LineEditREPL`, which can be initialized with `atreplinit`, and updated interactively, e.g. `Base.active_repl.iocontext[:compact] = true`. Fixes #20509.
This adds an `iocontext::Dict{Symbol,Any}` field to `LineEditREPL`, which can be initialized with `atreplinit`, and updated interactively, e.g. `Base.active_repl.iocontext[:compact] = true`. Fixes #20509.
This adds an `iocontext::Dict{Symbol,Any}` field to `LineEditREPL`, which can be initialized with `atreplinit`, and updated interactively, e.g. `Base.active_repl.iocontext[:compact] = true`. Fixes #20509.
This adds an `iocontext::Dict{Symbol,Any}` field to `LineEditREPL`, which can be initialized with `atreplinit`, and updated interactively, e.g. `Base.active_repl.iocontext[:compact] = true`. Fixes #20509.
This adds an `iocontext::Dict{Symbol,Any}` field to `LineEditREPL.options`, which can be initialized with `atreplinit`, and updated interactively, e.g. `Base.active_repl.options.iocontext[:compact] = true`. Fixes #20509.
This adds an `iocontext::Dict{Symbol,Any}` field to `LineEditREPL.options`, which can be initialized with `atreplinit`, and updated interactively, e.g. `Base.active_repl.options.iocontext[:compact] = true`. Fixes #20509.
This adds an `iocontext::Dict{Symbol,Any}` field to `LineEditREPL.options`, which can be initialized with `atreplinit`, and updated interactively, e.g. `Base.active_repl.options.iocontext[:compact] = true`. Fixes #20509.
I would like a way to modify the
IOContext
of the REPL. Right now that's a little hard because everything is buried deep in the REPL code.Example:
I'd like some global setting that allows me to put
debug=true
in the REPL IOContext and print "Lots of debug info" at the REPL.The text was updated successfully, but these errors were encountered: