From c6ab1bb91fe6d27543106d2bdce79e4c416bca48 Mon Sep 17 00:00:00 2001 From: Giorgio Calderone Date: Mon, 23 Mar 2020 19:22:13 +0100 Subject: [PATCH] Print mouse coordinates (regardless of verbosity option) --- src/Gnuplot.jl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Gnuplot.jl b/src/Gnuplot.jl index 0e78dce..ae2eec2 100644 --- a/src/Gnuplot.jl +++ b/src/Gnuplot.jl @@ -308,7 +308,8 @@ function GPSession(sid::Symbol) if line == "GNUPLOT_CAPTURE_BEGIN" saveOutput = true else - if (line != "") && (line != "GNUPLOT_CAPTURE_END") && (options.verbose) + if ((line != "") && (line != "GNUPLOT_CAPTURE_END") && (options.verbose)) || + !isnothing(match(r"clipboard", line)) printstyled(color=:cyan, "GNUPLOT ($sid) -> $line\n") end (saveOutput) && (put!(channel, line))