REFRESHING SUNTOOLS

Chuck Musciano chuck at trantor.harris-atd.com
Wed Jan 18 06:22:59 AEST 1989


> Is there any way of calling REFRESH other than using the Suntools
> RootMenu.  I mean from a Shell program, etc.

     Piece of cake:

	main()

	{       int fd;

	        fd = open("/dev/win0");        
	        wmgr_refreshwindow(fd);
	}

Note: details removed for clarity.  Include the appropriate include files.
Use "getenv("WINDOW_PARENT")" to get the true base window name instead of
hard wiring "/dev/win0".

[[ This is, in fact, the way it's done in suntools.c (check in
/usr/src/sun/suntool/suntools.c).  --wnl ]]

Chuck Musciano
Advanced Technology Department
Harris Corporation
(407) 727-6131
ARPA: chuck at trantor.harris-atd.com



More information about the Comp.sys.sun mailing list