|
From: Ethan M. <merritt@u.washington.edu> - 2009-02-13 23:40:12
|
On Friday 13 February 2009 01:16:28 Petr Mikulik wrote:
> >
> > 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
Thank you. That clarifies the goal.
> 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')
Well, you can do better than that:
set macros
screen = GPVAL_TERM
...
set term @screen title 'hello'
set term @screen 4
set term @screen 5 size 400,400
Another possibility is to have the "set term" command accept
the terminal name as a string.
screen = "x11"
set term screen 5 size 400,400
See attached patch.
--
Ethan A Merritt
|