|
From: | Daniel J Sebald |
Subject: | Re: [patch #7847] Make gnuplot Qt terminal default for GUI/IDE via environment variable |
Date: | Mon, 24 Sep 2012 11:48:50 -0500 |
User-agent: | Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.24) Gecko/20111108 Fedora/3.1.16-1.fc14 Thunderbird/3.1.16 |
On 09/24/2012 07:15 AM, Mike Miller wrote:
Here's what I just put into my .octaverc because I'd rather Octave just figure out which gnuplot I have than print a warning. This is essentially what the second patch I proposed does. [~,s] = system ([gnuplot_binary " -e 'set term' 2>&1 | grep '\\<qt\\> '"]); if isempty (s) putenv ("GNUTERM", "x11"); else putenv ("GNUTERM", "qt"); endif
-e option. Nice. Dan
[Prev in Thread] | Current Thread | [Next in Thread] |