|
From: Petr M. <mi...@ph...> - 2009-02-13 09:16:39
|
Ad "set termopt" -- I think there are problems:
gnuplot> set term x11 title 'hello'
Terminal type set to 'x11'
Options are ' nopersist title "hello"'
gnuplot> set termopt dashed
gnuplot> show term
terminal type is x11 nopersist dashed
=> thus it has forgotten the title!
> > > > 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
>
>
> Let's go back to the beginning.
> What exactly is the problem that is being solved?
User/script writes in a portable and elegant way:
set term screen title 'hello'
set term screen 4
set term screen 5 size 400,400
instead of
term_startup=GPVAL_TERM
...
eval('set term '.term_startup.' title "hello"')
eval('set term '.term_startup.' 4')
eval('set term '.term_startup.' 5 size 400,400')
> What is it that you want to do with this saved terminal?
> Something different from "set term push" ?
You can push whichever terminal you like; however, the screen terminal stays
the same.
---
PM
|