1
1
2
2
promptname (level, name) = " $level |$name > "
3
+
4
+ function write_prompt (terminal, mode)
5
+ @static if VERSION ≥ v " 1.6.0-DEV.517"
6
+ LineEdit. write_prompt (terminal, mode, LineEdit. hascolor (terminal))
7
+ else
8
+ LineEdit. write_prompt (terminal, mode)
9
+ end
10
+ end
11
+
3
12
function RunDebugger (frame, repl = nothing , terminal = nothing ; initial_continue= false )
4
13
if repl === nothing
5
14
if ! isdefined (Base, :active_repl )
@@ -109,7 +118,7 @@ function RunDebugger(frame, repl = nothing, terminal = nothing; initial_continue
109
118
toggle_lowered (state)
110
119
println (Base. pipe_writer (terminal))
111
120
print_status (Base. pipe_writer (terminal), active_frame (state); force_lowered= state. lowered_status)
112
- LineEdit . write_prompt (state. terminal, panel)
121
+ write_prompt (state. terminal, panel)
113
122
else
114
123
LineEdit. edit_insert (s, " L" )
115
124
end
@@ -119,7 +128,7 @@ function RunDebugger(frame, repl = nothing, terminal = nothing; initial_continue
119
128
NUM_SOURCE_LINES_UP_DOWN[] += 1
120
129
println (Base. pipe_writer (terminal))
121
130
print_status (Base. pipe_writer (terminal), active_frame (state); force_lowered= state. lowered_status)
122
- LineEdit . write_prompt (state. terminal, panel)
131
+ write_prompt (state. terminal, panel)
123
132
else
124
133
LineEdit. edit_insert (s, " +" )
125
134
end
@@ -129,7 +138,7 @@ function RunDebugger(frame, repl = nothing, terminal = nothing; initial_continue
129
138
NUM_SOURCE_LINES_UP_DOWN[] = max (1 , NUM_SOURCE_LINES_UP_DOWN[] - 1 )
130
139
println (Base. pipe_writer (terminal))
131
140
print_status (Base. pipe_writer (terminal), active_frame (state); force_lowered= state. lowered_status)
132
- LineEdit . write_prompt (state. terminal, panel)
141
+ write_prompt (state. terminal, panel)
133
142
else
134
143
LineEdit. edit_insert (s, " -" )
135
144
end
0 commit comments