1
0
mirror of https://github.com/gnss-sdr/gnss-sdr synced 2025-01-17 20:53:02 +00:00

Fix persist for Mac

This commit is contained in:
Carles Fernandez 2017-10-22 08:28:59 +02:00
parent 5b23e29beb
commit b6573b00e6

View File

@ -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;
}