File tree Expand file tree Collapse file tree 1 file changed +11
-5
lines changed Expand file tree Collapse file tree 1 file changed +11
-5
lines changed Original file line number Diff line number Diff line change @@ -241,15 +241,20 @@ function run_frontend(repl::BasicREPL, backend::REPLBackendRef)
241
241
dopushdisplay && popdisplay (d)
242
242
end
243
243
244
- # # Custom Options
244
+ # # User Options
245
245
246
246
mutable struct Options
247
+ hascolor:: Bool
248
+ extra_keymap:: Union{Dict,Vector{<:Dict}}
247
249
backspace_align:: Bool
248
250
backspace_adjust:: Bool
249
251
end
250
252
251
- Options (; backspace_align= true , backspace_adjust= backspace_align) =
252
- Options (backspace_align, backspace_adjust)
253
+ Options (;
254
+ hascolor = true ,
255
+ extra_keymap = AnyDict[],
256
+ backspace_align = true , backspace_adjust = backspace_align) =
257
+ Options (hascolor, extra_keymap, backspace_align, backspace_adjust)
253
258
254
259
# # LineEditREPL ##
255
260
@@ -714,8 +719,9 @@ enable_promptpaste(v::Bool) = JL_PROMPT_PASTE[] = v
714
719
715
720
function setup_interface (
716
721
repl:: LineEditREPL ;
717
- hascolor:: Bool = repl. hascolor,
718
- extra_repl_keymap:: Union{Dict,Vector{<:Dict}} = Dict{Any,Any}[]
722
+ # those keyword arguments may be deprecated eventually in favor of the Options mechanism
723
+ hascolor:: Bool = repl. options. hascolor,
724
+ extra_repl_keymap:: Union{Dict,Vector{<:Dict}} = repl. options. extra_keymap
719
725
)
720
726
# ##
721
727
#
You can’t perform that action at this time.
0 commit comments