From b6573b00e69f40c72ded35266bf43cca285e289c Mon Sep 17 00:00:00 2001 From: Carles Fernandez Date: Sun, 22 Oct 2017 08:28:59 +0200 Subject: [PATCH] Fix persist for Mac --- src/tests/common-files/gnuplot_i.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/tests/common-files/gnuplot_i.h b/src/tests/common-files/gnuplot_i.h index 183e51101..b2c3356cd 100644 --- a/src/tests/common-files/gnuplot_i.h +++ b/src/tests/common-files/gnuplot_i.h @@ -1049,8 +1049,12 @@ Gnuplot& Gnuplot::set_smooth(const std::string &stylestr) // Gnuplot& Gnuplot::showonscreen() { + std::string persist(" persist"); +#ifdef __APPLE__ + persist = ""; +#endif cmd("set output"); - cmd("set terminal " + Gnuplot::terminal_std + " persist"); + cmd("set terminal " + Gnuplot::terminal_std + persist); return *this; }