From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <79889d713ba2ea42105de3d931abe948@comcast.net> To: 9fans@cse.psu.edu Subject: Re: [9fans] Abaco's Web Page Name in winwatch From: Gregory Pavelcak Date: Mon, 2 Jul 2007 12:37:58 -0400 In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Topicbox-Message-UUID: 8f620ed4-ead2-11e9-9d60-3106f5b1d025 Thanks. That's much nicer than what I was doing with the plumber. It not only updates winwatch with a new name when I stay within a single window, but the page names, like "Plan 9 from Bell Labs" are nicer than the plumber's argument "http://cm.bell-labs.com/plan9/". Greg > label is a Runestr, not a char*. what you want is > > void > updlabel(void) > { > int fd, n; > > fd = open("/dev/label", OWRITE); > if(fd == -1) > return; > fprint(fd, "%#.*S", title.nr, title.r); > close(fd); > } > > - erik