From 41d7cb991ab3c16d85f1d1281ae0752af378a2f0 Mon Sep 17 00:00:00 2001 From: Giorgio Calderone Date: Sun, 12 Apr 2020 00:36:11 +0200 Subject: [PATCH] Minor changes --- src/Gnuplot.jl | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/src/Gnuplot.jl b/src/Gnuplot.jl index 19eee78..340fe0e 100644 --- a/src/Gnuplot.jl +++ b/src/Gnuplot.jl @@ -293,9 +293,10 @@ function GPSession(sid::Symbol) line = "" while true c = read(stream, Char) + print(c) (c == '\r') && continue (c == '\n') && break - if c == Char(0x1b) + if c == Char(0x1b) # sixel buf = Vector{UInt8}() push!(buf, UInt8(c)) while true @@ -309,17 +310,17 @@ function GPSession(sid::Symbol) continue end line *= c - for token in pagerTokens() + for token in pagerTokens() # handle pager interaction if (length(line) == length(token)) && (line == token) - return line + break end end end - if (line != "GNUPLOT_CAPTURE_BEGIN") && - (line != "GNUPLOT_CAPTURE_END") && - (Base.active_repl.mistate.current_mode.prompt == "gnuplot> ") - println(stdout, line) - end + # TODO if (line != "GNUPLOT_CAPTURE_BEGIN") && + # TODO (line != "GNUPLOT_CAPTURE_END") && + # TODO (Base.active_repl.mistate.current_mode.prompt == "gnuplot> ") + # TODO println(stdout, line) + # TODO end return line end