<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to 288: Gunplot as QProcess</title><link>https://sourceforge.net/p/gnuplot/support-requests/288/</link><description>Recent changes to 288: Gunplot as QProcess</description><atom:link href="https://sourceforge.net/p/gnuplot/support-requests/288/feed.rss" rel="self"/><language>en</language><lastBuildDate>Tue, 07 Nov 2023 20:20:05 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/gnuplot/support-requests/288/feed.rss" rel="self" type="application/rss+xml"/><item><title>#288 Gunplot as QProcess</title><link>https://sourceforge.net/p/gnuplot/support-requests/288/?limit=25#8b4f</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Thanks, this solves print to STDOUT!&lt;br/&gt;
But the other question, regarding how GP detects in which mode it is started, is not answered.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">No Za</dc:creator><pubDate>Tue, 07 Nov 2023 20:20:05 -0000</pubDate><guid>https://sourceforge.net7466bb02e1917725afe603347cb508e4cfb2948b</guid></item><item><title>#288 Gunplot as QProcess</title><link>https://sourceforge.net/p/gnuplot/support-requests/288/?limit=25#e360</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;See "help set print"&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Hans-Bernhard Broeker</dc:creator><pubDate>Tue, 07 Nov 2023 19:54:08 -0000</pubDate><guid>https://sourceforge.netea2f1a188f5e7e91fc7cb920dd0ca29091146675</guid></item><item><title>Gunplot as QProcess</title><link>https://sourceforge.net/p/gnuplot/support-requests/288/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;br/&gt;
I start Gnuplot as a QProcess &lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;code&gt;&lt;span class="nt"&gt;Gpt&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;new&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;QProcess&lt;/span&gt;&lt;span class="o"&gt;();&lt;/span&gt;
&lt;span class="nt"&gt;arg&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;&amp;lt;&amp;lt;&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"-s"&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;&amp;lt;&amp;lt;&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"&amp;lt;&amp;amp;0"&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt;
&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;Gpt-&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;&lt;span class="nt"&gt;setArguments&lt;/span&gt;&lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="nt"&gt;arg&lt;/span&gt;&lt;span class="o"&gt;);&lt;/span&gt;
&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;Gpt-&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;&lt;span class="nt"&gt;setProcessChannelMode&lt;/span&gt;&lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="nt"&gt;QProcess&lt;/span&gt;&lt;span class="p"&gt;::&lt;/span&gt;&lt;span class="nd"&gt;SeparateChannels&lt;/span&gt;&lt;span class="o"&gt;);&lt;/span&gt;
&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;connect&lt;/span&gt;&lt;span class="o"&gt;(&lt;/span&gt;
&lt;span class="w"&gt;           &lt;/span&gt;&lt;span class="nt"&gt;Gpt&lt;/span&gt;&lt;span class="o"&gt;,&amp;amp;&lt;/span&gt;&lt;span class="nt"&gt;QProcess&lt;/span&gt;&lt;span class="p"&gt;::&lt;/span&gt;&lt;span class="nd"&gt;readyReadStandardError&lt;/span&gt;&lt;span class="o"&gt;,&lt;/span&gt;
&lt;span class="w"&gt;           &lt;/span&gt;&lt;span class="nt"&gt;this&lt;/span&gt;&lt;span class="o"&gt;,&amp;amp;&lt;/span&gt;&lt;span class="nt"&gt;GpObj&lt;/span&gt;&lt;span class="p"&gt;::&lt;/span&gt;&lt;span class="nd"&gt;ReadError&lt;/span&gt;&lt;span class="o"&gt;);&lt;/span&gt;
&lt;span class="w"&gt;    &lt;/span&gt;&lt;span class="nt"&gt;connect&lt;/span&gt;&lt;span class="o"&gt;(&lt;/span&gt;
&lt;span class="w"&gt;           &lt;/span&gt;&lt;span class="nt"&gt;Gpt&lt;/span&gt;&lt;span class="o"&gt;,&amp;amp;&lt;/span&gt;&lt;span class="nt"&gt;QProcess&lt;/span&gt;&lt;span class="p"&gt;::&lt;/span&gt;&lt;span class="nd"&gt;readyReadStandardOutput&lt;/span&gt;&lt;span class="o"&gt;,&lt;/span&gt;
&lt;span class="w"&gt;           &lt;/span&gt;&lt;span class="nt"&gt;this&lt;/span&gt;&lt;span class="o"&gt;,&amp;amp;&lt;/span&gt;&lt;span class="nt"&gt;GpObj&lt;/span&gt;&lt;span class="p"&gt;::&lt;/span&gt;&lt;span class="nd"&gt;ReadStdOut&lt;/span&gt;&lt;span class="o"&gt;);&lt;/span&gt;
&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;Gpt-&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;&lt;span class="nt"&gt;start&lt;/span&gt;&lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"c:/cygwin64/bin/gnuplot-X11"&lt;/span&gt;&lt;span class="o"&gt;);&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;so far so good.&lt;/p&gt;
&lt;p&gt;My problem is that only STDERR seems to be used for any output from gnuplot.&lt;br/&gt;
If I try to gather information eg. by print MOUSE_X," ",MOUSE_Y I have to check that this is the correct output and not an error from a preceding plot command, eg format error etc.&lt;br/&gt;
It would be really helpful if errors would go to STDERR while normal output goes to STDOUT&lt;br/&gt;
In this case eg. it is much easier to filter out "Press return for more: " during the help command and present the full text at once.&lt;/p&gt;
&lt;p&gt;Is there a way to make gnuplot believe to be started interactively ? Or the other way around how to gnuplot detect that it is not called from bash ?&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">No Za</dc:creator><pubDate>Tue, 07 Nov 2023 18:15:55 -0000</pubDate><guid>https://sourceforge.net345271c7d6b612917298d9e7a17ead9060f6d414</guid></item></channel></rss>