Skip to content

Commit 6b13fed

Browse files
committed
Update _printover_screen
1 parent d97e709 commit 6b13fed

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

src/display.jl

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,12 @@ function _printover_screen(io::IO, s::AbstractString, color::Symbol = :color_nor
7272
print(io, "\r")
7373
printstyled(io, s; color=color)
7474
if isdefined(Main, :IJulia)
75-
Main.IJulia.stdio_bytes[] = 0 # issue #76: circumvent IJulia I/O throttling
75+
# issue #76: circumvent IJulia I/O throttling
76+
if pkgversion(Main.IJulia) < v"1.30"
77+
Main.IJulia.stdio_bytes[] = 0
78+
else
79+
Main.IJulia.reset_stdio_count()
80+
end
7681
elseif isdefined(Main, :ESS) || isdefined(Main, :Atom)
7782
else
7883
print(io, "\u1b[K") # clear the rest of the line

0 commit comments

Comments
 (0)