Path: utzoo!attcan!uunet!lll-winken!lll-ncis!helios.ee.lbl.gov!pasteur!agate!ucbvax!decwrl!labrea!rutgers!mailrus!cornell!uw-beaver!rice!sun-spots-request From: chuck@trantor.harris-atd.com (Chuck Musciano) Newsgroups: comp.sys.sun Subject: Re: REFRESHING SUNTOOLS Message-ID: <8901121341.AA19703@trantor.harris-atd.com> Date: 17 Jan 89 20:22:59 GMT Sender: usenet@rice.edu Organization: Sun-Spots Lines: 25 Approved: Sun-Spots@rice.edu Original-Date: Thu, 12 Jan 89 08:38:36 EST X-Sun-Spots-Digest: Volume 7, Issue 107, message 6 of 17 > 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@trantor.harris-atd.com