|
From: Ethan M. <merritt@u.washington.edu> - 2006-04-14 16:03:29
|
On Friday 14 April 2006 08:48 am, Petr Mikulik wrote:
> > perhaps "set term screen <num>", where "screen" is taken from
> > GNUTERM, and <num> is ignored for terminals that don't support multiple windows.
>
> For example, we cannot live with Octave's figure.m implementation with
> hardcoded "set term x11 5".
exactly
> Screen terminals should be unified so that they are capable of
> set terminal screen {<n>}
> {title "<string>"}
> {{no}enhanced}
> {font <fontspec>}
> {{no}persist}
> {{no}raise}
> {close}
I agree with this, but the mechanism is already in place:
set term pop
set termoption enhance font "Times,11" ...
We would just need to expand the list of keywords accepted by
'set termoption'. Hmm. "persist" might be a problem.
> >That is what the environmental variable GNUTERM is for.
>
> But it is not available from within gnuplot unless gnuplot
> supports new string function getenv('GNUTERM')?
What do you mean "available"?
The value of GNUTERM is stored as the terminal name on entry.
So if you immediately do a "set term push", then you have
saved whatever the GNUTERM default was and can recover it
later with "set term pop".
But yes, we could also copy it into a udv called GNUTERM.
That is so easy that I might as well just go ahead and add it :-)
--
Ethan A Merritt
Biomolecular Structure Center
University of Washington, Seattle WA
|