|
From: Ethan M. <merritt@u.washington.edu> - 2008-01-09 20:56:57
|
On Wednesday 09 January 2008, Allin Cottrell wrote: > Quick question: is there a way to determine non-interactively what > the default gnuplot terminal is? > > I'd like to be able to tell, for example, whether an "unknown" > instance of gnuplot on X11 defaults to x11 or wxt. 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. You could, of course. force the default to whichever you like using the environmental variable GNUTERM. -- Ethan A Merritt Biomolecular Structure Center University of Washington, Seattle 98195-7742 |