rxvtRef-xpm.yo 1.2 KB

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