|
From: Allin C. <cot...@wf...> - 2008-01-09 21:09:27
|
On Wed, 9 Jan 2008, Ethan Merritt wrote: > On Wednesday 09 January 2008, Allin Cottrell wrote: > > Quick question: is there a way to determine non-interactively what > > the default gnuplot terminal is? > > On a linux system the default will be wxt if wxt is present at all. > So you could do > ldd `which gnuplot` | grep wx > If you get a non-empty result, then the default is wxt. > > For that matter, if you are sitting at a terminal you could say: > > echo "show term" | gnuplot '-' > > But I think this might not work from a script. Thanks. I wasn't very clear: the real task here is to find the information programmatically, for gnuplot running on somebody else's computer. My experimentation, it seems that echo "print GNUTERM" | gnuplot does the job, at least for recent gnuplot. Allin Cottrell |