Print output from gnuplot process
This commit is contained in:
parent
451e869668
commit
6c3b83c3b1
@ -302,13 +302,16 @@ function GPSession(sid::Symbol)
|
|||||||
end
|
end
|
||||||
if line == "GNUPLOT_CAPTURE_BEGIN"
|
if line == "GNUPLOT_CAPTURE_BEGIN"
|
||||||
saveOutput = true
|
saveOutput = true
|
||||||
|
elseif line == "GNUPLOT_CAPTURE_END"
|
||||||
|
put!(channel, line)
|
||||||
|
saveOutput = false
|
||||||
else
|
else
|
||||||
if ((line != "") && (line != "GNUPLOT_CAPTURE_END") && (options.verbose)) ||
|
if line != ""
|
||||||
!isnothing(match(r"clipboard", line))
|
if options.verbose || !saveOutput
|
||||||
printstyled(color=:cyan, "GNUPLOT ($sid) -> $line\n")
|
printstyled(color=:cyan, "GNUPLOT ($sid) -> $line\n")
|
||||||
end
|
end
|
||||||
|
end
|
||||||
(saveOutput) && (put!(channel, line))
|
(saveOutput) && (put!(channel, line))
|
||||||
(line == "GNUPLOT_CAPTURE_END") && (saveOutput = false)
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
delete!(sessions, sid)
|
delete!(sessions, sid)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user