|
From: Petr M. <mi...@ph...> - 2009-02-12 23:28:15
|
> > I was thinking how to smoothly support x11, wxt, and others, in a portable > > way. What about: > > > > set term screen ... options ... > > or > > set term default ... options ... > > > > There, the "screen" terminal is that after gnuplot's start-up, i.e. that in > > GPVAL_TERM. Then, Octave (or others) won't have to care about > > set term x11 > > set term win > > set term aqua > > etc.; it will just do > > set term screen|default|other_synonym > > > > Gnuplot will have to ensure that all "set term x11|wxt|qt|win|pm|aqua" > > options are the same (or silently ignored if not relevant). > > Don't we already have "set termoption" for that? > It would have to be expanded to accept the size/position commands > (if they ever exist on these other terminals) but other than that > I think it does exactly what you want. I have been thinking that > the termoption command could accept additional options anyhow. I wonder which method is better. In your proposed case, the set termoption XXX would have to be identical to set terminal CURRENT XXX I have just added a patch for the proposed set term screen XXX into sourceforge: https://sourceforge.net/tracker/index.php?func=detail&aid=2594217&group_id=2055&atid=302055 What is better? This: set term screen 2 title 'hello' or set termopt 2 title 'hello' ? Maybe we could also add set term current XXX --- PM |