1 |
pcg |
1.1 |
COMMENT(-- $Id: rxvtRef-xpm.yo,v 1.1 2003/11/18 14:22:16 root Exp $ --) |
2 |
|
|
label(XPM) |
3 |
|
|
nsect(XPM) |
4 |
|
|
|
5 |
|
|
For the XPM XTerm escape sequence bf(tt(ESC ] 20 ; Pt ST)) then value of |
6 |
|
|
bf(tt(Pt)) can be the name of the background pixmap followed by a sequence of |
7 |
|
|
scaling/positioning commands separated by semi-colons. The scaling/positioning |
8 |
|
|
commands are as follows: |
9 |
|
|
|
10 |
|
|
startdl() |
11 |
|
|
dl(query scale/position) |
12 |
|
|
(bf(?)) |
13 |
|
|
P()\ |
14 |
|
|
dl(change scale and position) |
15 |
|
|
(bf(WxH+X+Y)nl()\ |
16 |
|
|
bf(WxH+X) (== bf(WxH+X+X))nl()\ |
17 |
|
|
bf(WxH) (same as bf(WxH+50+50))nl()\ |
18 |
|
|
bf(W+X+Y) (same as bf(WxW+X+Y))nl()\ |
19 |
|
|
bf(W+X) (same as bf(WxW+X+X))nl()\ |
20 |
|
|
bf(W) (same as bf(WxW+50+50))) |
21 |
|
|
P()\ |
22 |
|
|
dl(change position (absolute)) |
23 |
|
|
(bf(=+X+Y)nl()\ |
24 |
|
|
bf(=+X) (same as bf(=+X+Y))) |
25 |
|
|
P()\ |
26 |
|
|
dl(change position (relative)) |
27 |
|
|
(bf(+X+Y)nl()\ |
28 |
|
|
bf(+X) (same as bf(+X+Y))) |
29 |
|
|
P()\ |
30 |
|
|
dl(rescale (relative)) |
31 |
|
|
(bf(Wx0) -> bf(W *= (W/100))nl()\ |
32 |
|
|
bf(0xH) -> bf(H *= (H/100))) |
33 |
|
|
enddl() |
34 |
|
|
|
35 |
|
|
For example: |
36 |
|
|
|
37 |
|
|
startdl() |
38 |
|
|
dl(bf(\E]20;funky\a)) |
39 |
|
|
(load bf(funky.xpm) as a tiled image) |
40 |
|
|
P()\ |
41 |
|
|
dl(bf(\E]20;mona;100\a)) |
42 |
|
|
(load bf(mona.xpm) with a scaling of 100%) |
43 |
|
|
P()\ |
44 |
|
|
dl(bf(\E]20;;200;?\a)) |
45 |
|
|
(rescale the current pixmap to 200% and display the image geometry in \ |
46 |
|
|
the title) |
47 |
|
|
enddl() |