[comp.windows.x] How do you get blinking text?

slosser@ntsc-rd.navy.MIL ("Steve Slosser") (05/08/91)

Hello,

Does anybody know how to get text and graphics to blink at a regular rate
using Xlib or one of the toolkits?  I would also be interested in any vendors
that support extensions to allow this.  Thanks in advance.

						-- Steve

mouse@lightning.mcrcim.mcgill.EDU (der Mouse) (05/09/91)

> Does anybody know how to get text and graphics to blink at a regular
> rate using Xlib or one of the toolkits?

As far as I know you have to arrange it yourself.  The most portable
way to do it is to redraw things periodically; that's the approach I
take in those few programs I have where I want such a thing.

The next most portable way is probably to allocate a writable colormap
cell, draw with that color, and periodically change the value in the
colormap.  This works only with dynamic visuals, of course, but with
that caveat it should be portable.

> I would also be interested in any vendors that support extensions to
> allow this.

Can't help you there.

					der Mouse

			old: mcgill-vision!mouse
			new: mouse@larry.mcrcim.mcgill.edu